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

Re: whence question



[What is up with all the ||...|| stuff?  Makes this really hard to read.]

On Sat, 14 Jan 2017, Ray Andrews wrote:

> On 13/01/17 08:57 PM, Ray Andrews wrote:
>
> |local _args=`eval echo $@`||
> | |_args=( ${(z)_args} )|

??  Why in the world are you using eval and (z) there?  The semantics of
(z) are likely to do something unexpected at some point (and Daniel will
note that if $1 starts with a hyphen, "echo" will treat it as an option
and do something else confusing).

  local _args=( ${~@} )



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