Re: some more inline assignments / evaluation wrt POSIX

2007-05-20 Thread Chet Ramey
Mike Frysinger wrote: > testing with bash-3.2p17 here ... > > looking at these statements: > K=dvb0.net A=${K#dvb} echo "$A" > K=dvb0.net A=${K#dvb} ; echo "$A" > K=dvb0.net A=${K#dvb} eval echo '$A' > > shouldnt "0.net" always be displayed ? looks like A is always set properly > to "0.net", bu

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