I wanted to be able to run program from anywhere without adding ./
, so I edited ~/.bashrc
to contain this line
export PATH=$PATH:.
Now when I type echo $PATH
I get
[......]:/home/yotam/omnetpp-4.2.2/bin:.: No such file or directory
Why is that?
Also, I'm not sure about why using export
, I get the same result if I just type PATH=$PATH:more_valuew
without export. So what's the difference?
Thanks!