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

Re: PATCH: new and updated completions



"Bart Schaefer" wrote:
> On Aug 8, 12:37pm, Oliver Kiddle wrote:
> }
> } +    [[ -e /etc/redhat-release ]] && args=( $args[@]
> 
> There is no reason, ever, to use $args[@].

Indeed, there's no reason to use the `@' forms outside double quotes,
which is their natural habitat.  There the distinction between $args and
$args[@] is important, although I tend to use ${args[@]} just for
clarity (but I tend to be inconsistent, too).

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk



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