some more inline assignments / evaluation wrt POSIX
From:
Mike Frysinger
Subject:
some more inline assignments / evaluation wrt POSIX
Date:
Fri, 18 May 2007 16:06:03 -0400
User-agent:
KMail/1.9.6
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", but in the first statement, $A gets expanded before the variable
assignments are processed
-mike
signature.asc Description: This is a digitally signed message part.