This is the mail archive of the cygwin@cygwin.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]
Other format: [Raw text]

Re: Shell brace expansion in make works?


On Sun, Feb 09, 2003 at 04:28:21PM -0500, Rolf Campbell wrote:
>William A. Gatliff wrote:
>>I have a Makefile with a command like this:
>>
>> mkdir -p /opt/billgatliff/{usr,lib}
>>
>>Works fine under Linux, but not on the latest Cygwin.
>>
>>Under Cygwin, what I actually get is a directory called "{usr",
>>instead of "usr".  Other variations on this brace expansion (in tar
>>arguments, etc.) produce similar problems.
>>
>>I checked this:
>>
>>$ set | grep SHELL
>>SHELL=/bin/bash
>>
>>Seems fine.  But when I do this:
>>
>>$ make SHELL=/bin/sh ...
>                    ^^ "bash"
>>
>>I actually get what I'm after, i.e. "usr" instead of "{usr".
>I'm guessing that you meant to type "bash" in the email.  Either way, 
>cygwin make seems to ignore the environment variable SHELL, and uses 
>'/bin/sh' unless you specify on the command-line or in the makefile.

Yeah, cygwin's make, and linux's make, and Tru64's make, and...

Since /bin/sh is "ash" on cygwin and brace expansion is not supported
in ash, this is working as designed.

cgf
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to aaaspam@sourceware.org
and be permanently blocked from mailing lists at sources.redhat.com

--
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/


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