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: 3728
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: Thu Apr 18 13:19:50 CDT 2024