export A=123; echo $A 123
echo $A $A $A 123
The output should be: 123 123
If I do export A=123, then echo $A, it prints 123. If I do echo $A $A, it prints $A 123