How to set an environment variable question

Ioannis Vranos ioannis.vranos at gmail.com
Sun Jan 22 19:45:35 UTC 2012


Hi all.

I have seen 2 versions for the following:

export PATH=$PATH:/some_directory

and

export PATH=${PATH}:/some_directory


Is anyone of them better than the other? Or in other words, are '{'
and '}' redundant? (I don't know shell programming).


Thank you a lot,

-- 
Ioannis Vranos

http://cppsoftware.binhoster.com




More information about the ubuntu-users mailing list