cygpath -m (and -w) sometimes emits multi-line names
Tue Feb 22 08:58:00 GMT 2005
> -----Original Message-----
> From: cygwin-owner On Behalf Of Raul Miller
> Sent: 20 February 2005 19:17
> Manipluating the result of cygpath -m with shell tools is needlessly
> $ pwd
> /cygdrive/c/Program Files/Mozilla Firefox/defaults/profile
> $ cygpath -m `pwd`/bookmarks.htm | sed 's} }%20}g; s}^}file:///}'
Hmm. What kind of output would you expect from the command
cygpath -m path1 path2 path3
? OK, then, so what kind of output would you expect from the command
cygpath -m /cygdrive/c/Program Files/Mozilla
? In a unix shell, if you don't want a space to act as a command separator, you
have to quote it. Like this:
cygpath -m "/cygdrive/c/Program Files/Mozilla
So what kind of output would you expect from
cygpath -m "`pwd`/bookmarks.htm"
This is all bog-standard POSIX shell stuff. Any linux or unix will act the
same if you supply paths with spaces in as command-line arguments to an
executable, but 'doze systems have a much greater tendency to actually _have_
paths with spaces in them.
Can't think of a witty .sigline today....
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin