On Mon, Feb 28, 2011 at 7:41 AM, Chris F.A. Johnson
<ch...@cfajohnson.com> wrote:
> On Mon, 28 Feb 2011, Andres Perera wrote:
>
>> for i in bash mksh; do
>>   echo $i:
>>   $i <<'!'
>>       set 'a  b' 'c  d'
>>       quoted="$@"
>>       unquoted=$@
>>       echo "$quoted"
>>       echo "$unquoted"
>>   !
>> done
>>
>> here bash treats unquoted $@ on rhs differently, expanding it like $*:
>
>   Unquoted $@ *is* the same as $*.

you're not reading

unquoted assignments should not apply IFS to $@

>
> --
>   Chris F.A. Johnson, <http://cfajohnson.com/>
>   Author:
>   Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
>   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
>

Reply via email to