[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] Is this a zsh anomaly?
From: |
Greg Chicares |
Subject: |
Re: [lmi] Is this a zsh anomaly? |
Date: |
Fri, 5 Feb 2016 18:28:29 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 |
On 02/05/2016 04:59 PM, Vadim Zeitlin wrote:
> On Fri, 5 Feb 2016 16:45:59 +0000 Greg Chicares <address@hidden> wrote:
>
> GC> $ cat Makefile
> GC> all:
> GC> echo $(MAKEFLAGS)
[...]
> GC> $export coefficiency='--jobs=4 --output-sync=recurse'
> GC> $make $coefficiency
> GC> make: the '-j' option requires a positive integer argument
>
> This is just another example of the main difference between zsh and the
> other shells: zsh doesn't split on whitespace by default, i.e.
Thanks. And it worked inside a shell script because the script
was interpreted by /bin/sh, which happened to be 'dash' for
debian, and something that rhymes with that for cygwin...most
likely, 'bash' in POSIX mode:
$ls -l /bin/*sh.exe
-rwxr-xr-x 2 earl None 98855 Oct 27 2014 /bin/ash.exe
-rwxr-xr-x 1 earl None 754717 Sep 24 19:52 /bin/bash.exe
-rwxr-xr-x 2 earl None 98855 Oct 27 2014 /bin/dash.exe
-rwxr-xr-x 1 earl None 754717 Sep 24 19:52 /bin/sh.exe
-rwxr-xr-x 1 earl None 700957 Jan 15 14:14 /bin/ssh.exe
-rwxr-xr-x 2 earl None 10752 Nov 2 05:30 /bin/zsh.exe