export which is correct syntax

Suvayu Ali fatkasuvayu+linux at gmail.com
Sat Jan 4 10:48:50 UTC 2014


On Sat, Jan 04, 2014 at 09:24:36AM +0000, Frank Murphy wrote:
> 1: export TMPDIR=/var/tmp
> 2: export TMPDIR=$TMPDIR:/var/tmp

Depends on what you want to do.  If you want to overwrite the variable,
use (1).  If you want to add (prepend) to the variable, use (2).

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list