On Wed, 4 Jun 2003, Lapo Luchini wrote:
> ...
>
> Please notice that there is a default prgoramm called "cygpath" that's
> really useful to convert path- and file-names between the two version,
> and it's not so hard to create "wrapper scripts" to convert them, e.g.
> (I copied this long ago from I-don't-remember-where):
>
> http://cygwin.com/cygwin-ug-net/using-utils.html#CYGPATH
>
> NEWARGS=""
> for arg in $@ ;
> do
> if [ -e "${arg}" ]; then
> NEWARGS="${NEWARGS} `cygpath -p -w "$arg"`"
> else
> NEWARGS="${NEWARGS} $arg"
> fi
> done
Lapo,
Note that the above won't work correctly if the program is expected to
create the file with a given name... IMO, there is no way of writing a
generic wrapper script without knowing anything about program parameters.
Igor