-2

I edited my .bashrc file, as shown in this image, by adding the following lines

TEST='123'
export TEST

However, I am not getting any output, when I run echo $TEST. It outputs nothing - just an empty line and goes back to the prompt

I want to know the reason why it is like this.

Greenonline
  • 1,851
  • 7
  • 17
  • 23

1 Answers1

2
source ~/.bashrc

should get it working. Or alternately you can log out and back in.