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

Re: surprise with echo



On Dec 19, 12:21pm, Oliver Kiddle wrote:
}
} I've never regarded the rc_expand_param and rc_quotes options as being
} there to emulate rc. They are merely inspired by rc.

This is also a truism.

} > > Only by turning off the option, or by doing e.g. ${@:-''} so that the
} > > expansion is the empty string rather than the empty array.
} 
} $^^@ will also do the job of disabling the option.

Right.  The important detail is that XX${@:-''}ZZ will produce similar
results whether or not $@ is empty, whereas XX${^^@}ZZ does something
different when $@ is NOT empty.  (Assuming in both cases rcexpandparam
is set.)



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