Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Zsh 3 and ${1+"$@"} (Was: [GNU Autoconf 2.53] testsuite.log: 126 failures)



On Apr 9, 12:51pm, Akim Demaille wrote:
}
} | "${1+"$@"}" also works in zsh, but this confuses other variants of sh
} | --- it works in bash, but sh on SunOS 5.8 tripped over it.
} 
} Err, I'm not even sure it does what I want: I suspect that Zsh
} understands this as a single argument, while I expect to have $# of
} them.

No, zsh understands "${1+"$@"}" as $# arguments, same as bash v1.  For
that matter, bash1 and zsh[34] agree on "${1+$@}" as well.



Messages sorted by: Reverse Date, Date, Thread, Author