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

Re: PATCH: new and updated completions



On Aug 8,  6:17pm, Oliver Kiddle wrote:
} Subject: Re: PATCH: new and updated completions
}
} Bart Schaefer wrote:
} 
} > There is no reason, ever, to use $args[@].
} > 
} > Either ksharrays is set, in which case you need ${args[@]}, or it is not
} > set, in which case $args is equivalent and microscopically faster.
} 
} I had assumed that it was done this way for a reason such as handling
} a strange option combination or that it was considered more readable
} to have the [@] there. Maybe someone does have a reason?

In the argument list of a command, it might be done just to alert the
reader that multiple arguments are potentially being provided.

In an expression like `args=( $args[@] ... )', the extra info is minimal.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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