[EMAIL PROTECTED] wrote:
>
>
> On Wed, 22 May 2002, 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?
>
> Most likely you're executing the script rather than sourcing it. E.g.,
> doing:
> ./name_of_script
>
> rather than:
>
> . ./name_of_script
>
Hi,
Most grateful for your help this worked perfectly I was indeed using
./name_of_script. The Bash man page is very large and I and I must have
missed the relevant part.
While investigating this problem I came across a bug in the graphical
log in manager. Try the following (assumes that you using the auto login
feature) open a Konsole and run env to see your environment and check
the PATH statement. Log out and then log in again via the graphical
login open console again and run env again and check your PATH statement
on my system (8.1) the PATH statement has had the original path appended
to it a second time some additional colons and forward slashes seem to
appear as well during the cocatanation.
Here is an example from my system:
After logout and login
PATH=/usr//bin:/bin:/usr/bin::/usr/local/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/games
Does anyone else get the same problem?
My thanks to all others who replied.
Colin Close
[EMAIL PROTECTED]
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com