On Thu, 15 Jun 2000, Andre Srinivasan wrote:

>       o Quoted expressions in shell commands don't seem to translate
>         across platforms.  In the SunOS5.6 and Cygwin versions of
>         make 3.78.1, I could use the following:
> 
>               subdirs: $(DIRS)
>                       if [ "x$(DIRS)" != x ]; then \
>                               for dir in $(DIRS); do \
>                                       (cd $$dir && $(MAKE)); \
>                               done; \
>                       fi
> 
>         When I switched to 3.79 (built for W32), I had to change the
>         double quotes to single quotes to avoid a shell error.

EZ> Are you sure this is Make issue, not a shell issue?  In other
EZ> words, are you sure Make invokes Bash in this case?  If it invokes
EZ> the Windows shell, then I can understand why you are having
EZ> problems with quotes.

I just checked that indeed bash is being invoked:

        $ cat Makefile

        all:
                echo $$SHELL

        $ make
        echo $SHELL
        d:/cygnus/cygwin-b20/usr/local/bin/sh.exe
        $




                                                        -andre.


Reply via email to