bug-bash
[Top][All Lists]
Advanced

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

Re: bash doesn't act like mksh at all


From: Chet Ramey
Subject: Re: bash doesn't act like mksh at all
Date: Mon, 28 Feb 2011 10:33:45 -0500

> 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 $*:

Thanks for the report.  I'll take a look.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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