Hi,

A few weeks ago I already submitted a post about difficulties with
my $PATH variable. It wasn't solved at that time but then I got
overloaded with work and couldn't spend more efforts on it.

But the problem is still there and now I want to solve it once and
for all. This is what happens:

- when "test -r /sw/bin/init.sh && . /sw/bin/init.sh" is left out
   from my .bash_profile:
      - (1) when xterm is invoked without -ls, .bash_profile is not
        executed and $PATH does not contain the fink paths
      - (2) when invoked with -ls, .bash_profile is executed
        but $PATH does not contain the fink paths
   This is all logical

- with "test -r /sw/bin/init.sh && . /sw/bin/init.sh" in
   .bash_profile:
      - (3) invoking xterm without -ls: the path is correct
        (/sw/bin:/sw/sbin in front). This means that somehow
        .bash_profile is executed in the course of the events, even
        if it shouldn't since I explicitly don't want a login shell.
        How can that happen? But although the path is correct, other
        commands such as defining aliases in .bash_profile are not
        executed or they are executed in some context where they loose
        their effect. When I manually enter . .bash_profile at the
        command prompt in this setup, the path remains correct and
        all other stuff in .bash_profile does what it needs to do.
      - (4) invoking xterm with -ls: now my aliases are set correctly
        but the path is messed up: /usr/bin:/bin:/usr/sbin:/sbin:
        /usr/local/bin: /usr/texbin:/usr/X11/bin:/sw/bin:/sw/sbin:
        /usr/X11R6/bin
        This is not how it should be since /sw/bin:/sw/sbin needs to
        be in front.

I need (4) to work correctly. I also did some tests with rxvt and it 
shows the same behaviour as xterm. Currently I use (3) and I manually 
enter . .bash_profile every time (or I get it from the shell history, 
saving some typing). But this is a pain. In Terminal everything is
correct.

Any ideas?

On a side note: what's the use of fink's own xinitrc? There are no 
details in the package or on fink's website. Apparently it got 
installed on my system through some dependencies because I never 
explicitly installed it. Could it be causing the problems that I see?

Thanks in advance

Patrick

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to