try ... 

source [pathtoscript/]scriptname 

(where [pathtoscript/] is the optional path to the script) 

This is because each script gets it's own bash (or other shell)
interpreter, so the environment values go into the sub shells
environment, no the shell being run under konsole. 

BTW: I'm pretty sure this is how other unix variants work as well... 

On Wed, 2002-05-22 at 10:02, C.H. Close wrote: 
> Hi
> 
>       I am having a problem persuading Bash to accept a script to add some
> additional environment variable to a Konsole environment.
> 
> The script I am using simply adds some stuff to the PATH statement as
> well as some extra environment variables typically the file contains
> statements as follows.
> 
> 
>                       PATH=$VARKON_ROOT/bin:$PATH
>                       export PATH
> 
> In previous versions of UNIX I have used making the script file
> executable and running it resulted in the PATH (in this case) having the
> additional directory appended to it, this also worked for new
> environment variables. When I do the same thing in Linux in a Konsole
> terminal under KDE the environment does not change. As far as I can
> glean from reading the man page for Bash this should work. If I run the
> commands from the prompt everything works fine but of course this is
> tedious and should not be necessary.
> 
> Can anyone guide me as what I am doing wrong?
> 
> 
> Colin Close
> [EMAIL PROTECTED]
> 
> ----
> 

> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com
-- 
--------------------------------------------------
Edward Muller - Director of Information Services
LearningPatterns.com Inc.

Mobile: 973.715.0230
   NYC: 212.487.9064 x115

Email/Jabber: [EMAIL PROTECTED]

http://www.learningpatterns.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to