[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] The difference between $* and "$*"?
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] The difference between $* and "$*"? |
Date: |
Sun, 02 Feb 2014 15:58:17 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
On 2/1/14, 1:58 PM, Seth David Schoen wrote:
> Peng Yu writes:
>>
>> I'm trying to understand the different between $* and "$*". The
>> following shows that they behave differently when IFS is not the
>> default. But the above paragraph from the manual does not explain
>> this. Could anybody let me know if this is documented somewhere else
>> in the manual and how to understand the difference? Thanks.
>
> Hi,
>
> The difference is whether it "expands to a single word" or to multiple
> words.
Would it help to add this sentence?
"When not within double quotes, each positional parameter expands to a
separate word."
It seems to me that that could have eliminated the confusion.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/
Re: [Help-bash] The difference between $* and "$*"?, Bob Proulx, 2014/02/01