On Thu, Feb 06, 2014 at 06:23:46AM +0900, Mike Hommey wrote:
> On Wed, Feb 05, 2014 at 11:10:11PM +0200, Eli Zaretskii wrote:
> > > Date: Thu, 6 Feb 2014 05:58:08 +0900
> > > From: Mike Hommey <[email protected]>
> > > Cc: [email protected], [email protected], [email protected]
> > >
> > > But the thing is there is still inconsistency in how things end up being
> > > invoked whether
> > > - make calls them directly
> > > - make uses sh -c
> > > - make uses sh script.sh
> >
> > When the shell is a Unixy one, only the first 2 methods are used, and
> > they are used exactly like on Posix platforms.
>
> Except when make is built with BATCH_MODE_SHELL_ONLY. Which is needed
> when sh -c fucks up with double quotes.
And, more importantly, it's the first two that don't work the same way:
$ mkdir foo
$ echo foo > foo/bar
$ cat <<EOF >foo.mk
default:
grep foo foo\\bar
grep "foo" foo\\bar
$ make -f foo.mk
grep foo foo\\bar
foo
grep "foo" foo\\bar
/usr/bin/sh: foobar: No such file or directory
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make