I think from reading my korn shell book that would more correctly be:
export PATH=${PATH}:/new/path/to/append
However, if you work in some places that set strange paths, you might do
this:
swap_path = $PATH
export PATH=/search/this/first/path:/usr/local/bin:$HOME/bin:$swap_path
On Thu, 28 Oct 1999, Duncan Hill wrote:
Date: Thu, 28 Oct 1999 14:43:24 -0400 (EDT)
From: Duncan Hill <dhill(_at_)sunbeach(_dot_)net>
To: Procmail Mailing List
<procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de>
Subject: Re: Effects of system changeover on procmailrc?
Resent-Date: Fri, 29 Oct 1999 04:54:18 +0200 (MET DST)
Resent-From: procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de
On Thu, 28 Oct 1999, David Stone wrote:
[1] How do you only ADD to the PATH variable instead of replacing it?
Assuming bash, and if memory serves right:
export PATH=$PATH:/new/path/to/append
or
PATH=$PATH:/new/path
export PATH
--
---------------------------------------------------------------------------
Chris Oxenreider | 651-481-0511 (v) | oxenreid(_at_)state(_dot_)net
---------------------------------------------------------------------------