Jim Meyering <jim <at> meyering.net> writes: > That is because bash and dash work differently: > $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done > bash ok > dash odd
Good catch. And yes, this is already documented in the autoconf manual on shell portability; the order of assignments is unspecified (so you should treat dependent variables similarly to how you follow C rules for sequence points). -- Eric Blake