cygpath "$@" in a script: bug?

Tino Lange tino.lange@isg.de
Mon Mar 10 16:20:00 GMT 2003


Then you will call cygpath x-times, which is quite inefficient for large 
globbing with wildcards.

Better do something like

*** snip ***

#! /bin/sh
for file in "$@"; do
   memfile="${memfile:-""}$file\n"
done
<application> $(echo -e "$memfile" | cygpath -w -f -)

*** snip ***

which results in just one call via an in -memory file-list.

Tino


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list