Marius, On Friday 16 June 2006 01:00, Marius Roets wrote:
Hi, I have noticed something strange. If I do the following in my .bashrc
Environment variable manipulation rarely is proper in ".bashrc". You'll also notice under this setup that when you run scripts (that don't include the "--norc" option in their #!/bin/bash shebang line) that another copy of "/mypath" will be prefixed. If you use the "pstree" command and look for your interactive shell (its proces ID is held in the shell variable $$) you'll see it has multiple shell's as parents (and grandparents), and each of them manipulated PATH because of your code in .bashrc. Read the BASH manual ("man bash") for the arcane rules about which set-up scripts are run when. You probably want either .bash_profile or .bash_login for this purpose.
...
Any ideas why this happens.
I am using Suse 10.0 btw.
Marius
Randall Schulz -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com