bug-bash
[Top][All Lists]
Advanced

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

Re: More fun with IFS


From: Andreas Schwab
Subject: Re: More fun with IFS
Date: Wed, 30 Jan 2013 09:46:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (gnu/linux)

"Chris F.A. Johnson" <chris@cfajohnson.com> writes:

> On Wed, 30 Jan 2013, Andreas Schwab wrote:
>
>> "Chris F.A. Johnson" <chris@cfajohnson.com> writes:
>>
>>>> var=${a[*]}   ... one   two three   four  # bad
>>>
>>>    Looks good to me. It expands to multiple words, just as an unquoted
>>>    $* would do.
>>
>> But no field splitting is performed on the expansion, so why are the
>> colons lost?
>
>    How is it printed if it is not expanded?

??? Parameter expansion and field splitting are separate steps of word
expansion.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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