public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Laurent Charles <laurent.charles@st.com>
To: gnu-win32@cygnus.com
Subject: Re: cygpath
Date: Fri, 13 Nov 1998 02:57:00 -0000	[thread overview]
Message-ID: <364C09B5.8F6FBA57@st.com> (raw)
In-Reply-To: <36484B31.A6089DF@st.com>

I'm sorry if I've not been clear.

laurent.charles@st.com wrote:
> When I use cygpath as follows;
>  cygpath -w "/usr/local/bin/tool -f /usr/src/source.c"
> It replies;
>  U:\local\bin\tool -f \usr\src\source.c

'-f' is an option of 'tool'.

The purpose of the above usage of cygwin was to have a "unix-like"
command line totally converted to a "windows-like" (the command line I
put between quotes).
In my example, 'tool' is a windows executable that does not understand
paths with '/'.

I understand from some of your answers (and I looked in the cygpath
source file) that cygpath can only convert one file/directory name at a
time, not a full command line.
However as it does a bit of the job on the end of the command line, I
expected it to be able to do the whole job.

In my idea, such tool would be interesting to have windows tools within
cygwin processes, make, or any script.
Especially, it may be a first step towards a wrapper to have another
compiler than gcc to compile things. We may imagine that cygpath (or a
derived tool) could convert a 'gcc' command line to a 'cl' command line
or to have gcc used within DevStudio.
ex: '/usr/local/bin/gcc -g /usr/src/source.c' may become something such
as 'd:\devstudio\vc\bin\cl /G u:\src\source.c'

However, in a first step, do you think extending cygpath is a bad idea
and that it will change its current behaviour?

--Laurent
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

  parent reply	other threads:[~1998-11-13  2:57 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-10  6:18 cygpath Laurent Charles
1998-11-12  3:32 ` cygpath Rick Rankin
1998-11-13  2:57 ` Laurent Charles [this message]
1998-11-11  4:22 cygpath Earnie Boyd
1998-11-12  3:32 ` cygpath Rick Rankin
     [not found] <36484B31.A6089DF.cygnus.gnu-win32@st.com>
1998-11-11  8:01 ` cygpath DJ Delorie
1998-11-12 16:07 cygpath Earnie Boyd
1998-11-12 17:30 ` cygpath Rick Rankin
     [not found] <19981114183901.22135.rocketmail@send104.yahoomail.com>
1998-11-17 12:51 ` cygpath Laurent Charles
     [not found] <pdy988306100538bcc77a8d4986@[209.128.98.50]>
2004-05-12 16:32 ` cygpath Joshua Daniel Franklin
2004-05-12 17:58   ` cygpath Dave Korn
2004-05-12 19:00   ` cygpath Christopher Faylor
2004-05-12 19:30   ` cygpath Igor Pechtchanski
2011-03-02 14:10 cygpath Jim P
2011-03-02 14:16 ` cygpath Edward Lam
2011-03-02 14:19 ` cygpath Roger K. Wells
2017-02-10 19:07 cygpath Gluszczak, Glenn
2017-02-10 19:50 ` cygpath Andrey Repin
2017-02-10 20:04   ` cygpath Gluszczak, Glenn
2017-02-10 20:31     ` cygpath Gluszczak, Glenn
2017-02-10 20:42       ` cygpath Michael Enright
2017-02-10 20:47         ` cygpath Michael Enright
2017-02-10 20:52         ` cygpath Gluszczak, Glenn
2017-02-10 21:35     ` cygpath Andrey Repin
2017-02-10 21:47       ` cygpath Gluszczak, Glenn
2017-02-10 21:54         ` cygpath Michael Enright
2017-02-10 21:55       ` cygpath Michael Enright
2017-02-10 23:17     ` cygpath Eliot Moss
2017-02-10 23:50       ` cygpath Sam Edge
2017-02-11  0:05         ` cygpath Eliot Moss
2017-02-11  0:45           ` cygpath Sam Edge
2017-02-10 20:37   ` cygpath Michael Enright
2017-02-13 17:29   ` cygpath Nellis, Kenneth (Conduent)
2017-02-14  8:47     ` cygpath Corinna Vinschen
2017-02-15 14:41       ` cygpath Nellis, Kenneth (Conduent)
2017-02-15 15:29         ` cygpath Corinna Vinschen
2017-02-11 18:19 ` cygpath Brian Inglis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=364C09B5.8F6FBA57@st.com \
    --to=laurent.charles@st.com \
    --cc=gnu-win32@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).