On 6/23/17 10:35 PM, Robert Elz wrote:
> Date: Fri, 23 Jun 2017 11:39:45 -0400
> From: Greg Wooledge <[email protected]>
> Message-ID: <[email protected]>
>
> | That's what I always thought too, but if commonly used shells like
> | dash can't even agree on this, then I simply upgrade my response level
> | from "bad practice" to "completely wrong, don't ever do this" when
> | someone uses unquoted $* or $@.
>
> As Chet said in an earlier response, unquoted expansions are more often
> bugs than not - but not always. Anything that you attempt to apply as a
> "one rule to govern them all" is going to be inappropriate sometimes.
In the vast majority of cases, people really desire the effects of "$@"
and should just use that.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/