bug-bash
[Top][All Lists]
Advanced

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

Re: More fun with IFS


From: Dan Douglas
Subject: Re: More fun with IFS
Date: Wed, 30 Jan 2013 17:28:19 -0600
User-agent: KMail/4.8.3 (Linux/3.4.6-pf+; KDE/4.8.3; x86_64; ; )

On Wednesday, January 30, 2013 11:35:55 AM Chet Ramey wrote:
> On 1/30/13 2:47 AM, Dan Douglas wrote:
> 
> > No, $* always expands to a single word. If multiple words result, those
> > are 
> > the result of field-splitting, not an intrinsic multi-word expansion as in
> > the 
> > case of $@. Though POSIX says very little about the unquoted cases.
> 
> I haven't looked at the rest of this, but the situation is clearly not as
> absolute as you've phrased it. 
> 
I know, I agree. I've looked at what happens with empty IFSes on $* before, 
which is pretty much the only way I can think of to even test whether the 
words are due to field splitting or parameter expansion. The way bash does 
that is fine. That's probably the least important of these points anyway and I 
wouldn't really expect it to have any impact on these tests involving 
assignments.
-- 
Dan Douglas



reply via email to

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