[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Error when setting path



Hi!

On Sun Aug 17, 2003 at 02:11:45PM +0200, Wayne Gemmell wrote:
> When I try to append to my current path I get the following output
> 
> wayne@Wuler:~$ export $PATH=$PATH:/usr/local/j2sdk1.4.2/bin/
> bash: export: 
> `/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin=/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/j2sdk1.4.2/bin/': 
> not a valid identifier

Use following instead:

$ export PATH=/usr/local/j2sdk1.4.2/bin:$PATH

$PATH dereferences the PATH environment variable and so the shell tries
to use the content of PATH as an envvar which is in this case not a
valid identifier ;-)

So long
Thomas

-- 
 .''`.  Obviously we do not want to leave zombies around. - W. R. Stevens
: :'  : Thomas Krennwallner <djmaecki at ull dot at>
`. `'`  1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446  DAD9 FF58 4E59 67A1 DA7B
  `-    http://bigfish.ull.at/~djmaecki/



Reply to: