Mike Frysinger wrote:
> i'm trying to determine whether POSIX allows for utilizing of variables in 
> simple commands that were defined earlier in the same command ... in other 
> words, whether this snippet:
> unset A B
> A="moo" B="$A more"
> echo $A , $B
> should display moo twice or just once:

As I read Posix, twice, as long as there are only assignment statements
in the command.  Assignment statements preceding simple commands are
treated differently.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    [EMAIL PROTECTED]    http://cnswww.cns.cwru.edu/~chet/


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to