Re: variable assignments and parameter expansion in a single command

2007-05-20 Thread Chet Ramey
Kevin F. Quinn wrote: Following a discussion we had earlier this year regarding the order of evaluation of variables and variable assignments: $ A=moo B=$A more env |grep ^B B=moo more (rather than showing just 'B= more') the dash maintainer has highlighted the following: $ bash

Re: variable assignments and parameter expansion in a single command

2007-03-26 Thread Kevin F. Quinn
On Sun, 25 Mar 2007 12:26:32 +0200 Kevin F. Quinn [EMAIL PROTECTED] wrote: FWIW I tried also /usr/xpg4/bin/sh (with the Belenix livecd, SunOS 5.11) and that shows the same as sh/ash/dash/bb. FI just tried on SunOS 5.8 (sparc) - a proper Sun installation - and /usr/xpg4/bin/sh there shows one

Re: variable assignments and parameter expansion in a single command

2007-03-24 Thread Andreas Schwab
Mike Frysinger [EMAIL PROTECTED] writes: 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

Re: variable assignments and parameter expansion in a single command

2007-03-24 Thread Chet Ramey
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

Re: variable assignments and parameter expansion in a single command

2007-03-24 Thread Kevin F. Quinn
On Sat, 24 Mar 2007 14:23:39 -0400 Chet Ramey [EMAIL PROTECTED] wrote: 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