Home » Infrastructure » Unix » Unix command doubt
Unix command doubt [message #196314] Thu, 05 October 2006 00:13 Go to next message
Messages: 506
Registered: December 2005
Location: Putty a dark screen
Senior Member
export PATH=${PATH}:/usr/local/bin
How it different from
export PATH=/usr/local/bin
why is ${PATH}: required .

Re: Unix command doubt [message #196367 is a reply to message #196314] Thu, 05 October 2006 02:33 Go to previous message
Messages: 3724
Registered: October 2005
Location: Melbourne, Australia
Senior Member
The first version APPENDS /usr/local/bin to whatever is already in your $PATH.

The second version REPLACES $PATH.

Ross Leishman
Previous Topic: how to use export cmd in unix script
Next Topic: file permission in Shell Script
Goto Forum:

Current Time: Mon Oct 24 18:49:56 CDT 2016

Total time taken to generate the page: 0.07953 seconds