This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: filename expansion


$Bill Luebkert wrote:

> There is a bug (IMHO) in the argument passing of non-cygwin shells.
> Cygwin assumes that the shell has no globbing ability and globs
> the cmdline.  Furthermore, it ignores ' and ", so you can't escape
> it.  I think I may have found a kludge around it though.
>
> Try:
>   xargs find . -name
>   *.pl -print
>   ^Z
> or
>   xargs find . -name
>   *.pl
>   -print
>   ^Z

Other solution is to write a program, not cygnus win32, that echoes his
arguments to sh.Like this 4dos batch file: (called "sh-c.btm")

@echo off
echo %&  |  sh

Now, I can call a cygnus win 32 command:

sh-c  find . -name "*.pl"

--
-------------------------------------------
Daniel P.C. Silva     Universidade do Minho
si10647@ci.uminho.pt
-------------------------------------------


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]