Why does in the second case, the value is not used by the command followed? $ x=1 $ echo $x 1 $ x=2 echo $x 1