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

Re: Effect of `export PATH' not pemanent?



On Fri, 2006-05-12 at 11:13 +0200, Rodolfo Medina wrote:
> Hi.
> 
> I do:
> 
> $ echo $PATH
> /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
> 
> , then
> 
> $ export PATH="$PATH:/sbin"
> $ echo $PATH
> /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/sbin
> 
> and everything all right; but the effect of `export PATH'
> is not permanent: after a while, or in another terminal, again:
> 
> $ echo $PATH
> /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
> 
> . How to make the effect of `export PATH' permanent,
> and why is it not?

You are confusing "permanent" with "spanning processes".  Unix (or
is it Shell?) won't let you affect other process' "symbol space".

As others have written, each shell instance must export PATH.

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA

"HELP: The feature that assists in generating more questions.
When the Help feature is used correctly, users are able to
navigate through a series of Help screens and end up where they
started from without learning a damn thing."
Computer Definitions



Reply to: