bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unexpected word splitting on $* when IFS is unset


From: Greg Wooledge
Subject: Re: Unexpected word splitting on $* when IFS is unset
Date: Fri, 23 Jun 2017 11:39:45 -0400
User-agent: Mutt/1.8.3 (2017-05-23)

On Fri, Jun 23, 2017 at 10:27:44PM +0700, Robert Elz wrote:
> $* is just $1 $2 ... (for as many params as set) as separate words.

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 address@hidden

It's not like it's ever *OK* to use them, really.  Now I just consider
it totally unacceptable instead of something that needs a stern warning.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]