Home » Infrastructure » Unix » Unix command doubt
Unix command doubt [message #196314] Thu, 05 October 2006 00:13 Go to next message
gkrishn
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 .

-Rajiv
Re: Unix command doubt [message #196367 is a reply to message #196314] Thu, 05 October 2006 02:33 Go to previous message
rleishman
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: Sun Dec 11 02:25:34 CST 2016

Total time taken to generate the page: 0.04330 seconds