On Thu, 17 Jun 2004, Martin Costabel wrote:

> Arno Dirks wrote:
> > hi All,
> > 
> > i know, there is heaps of info on it in the documentation and
> > heaps of threads on it here, but as far as i can see, i have
> > followed them all and i just cannot get X11 to start so that
> > it sets the necessary paths.
> > i am using 
> > .xinitrc
> > .bash_login
> > .bash_profile
> > .bashrc
> > 
> > but on starting X11 with XDarwin, in particular the 
> > xterm -ls
> > option in .xinitrc to identify it as the login, it seems that the only 
> > files that is being read is
> > .bash_profile
> > although even with the . /sw/bin/init.sh in there, 
> > when echo $PATH the /sw paths are not set.
> > also, my .bashrc is not being read, even though i 
> > source ~/.bashrc
> > in my .bash_login file
> 
>  From the bash man page:
> 
>   When  bash is invoked as an interactive login shell, or as a non-inter-
>   active shell with the --login option, it first reads and executes  com-
>   mands  from  the file /etc/profile, if that file exists.  After reading
>   that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile,
>   in  that order, and reads and executes commands from the first one that
>   exists and is readable.
> 
> If you have both ~/.bash_profile and ~/.bash_login, the ~/.bash_login is 
> never read at all. Nor is ~/.bashrc if you have the "source ~/.bashrc" 
> only in your ~/.bash_login. OTOH, the fink paths should be set if you 
> have ". /sw/bin/init.sh" in your ~/.bash_profile. And they will 
> certainly be set if you have ". /sw/bin/init.sh" in your ~/.xinitrc 
> before you call xterm.
> 
that is what i did last evening, now only have .bash_profile in 
which i source .bashrc and that seems to be working fine now.
however, i still don't have the fink paths in my PATH,
even though i put the . /sw/bin/init.sh in both my .xinitrc and
i put if for good measure also in my .bash_profile (in fact
that and a "source /sw/bin/init.sh" line). 
kind of confusing, since needless to say my .xinitrc is
being read (i call an xterm with my geometry and blackbox).

thanks for your help!

cheerio,
arno.


> A good idea, if you really want to know in what order your startup 
> scripts are executed in a particular situation, is to place lines like
> 
>   export RC=$RC:/etc/profile
> into /etc/profile,
> 
>   export RC=$RC:.bash_profile
> into ~/.bash_profile
> 
> and so on, for /etc/bashrc, ~/.profile, ~/.bash_login, ~/.bashrc.
> 
> Then you can check "echo $RC" in any given situation and see in what 
> order which files have been executed to get there.
> 




-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to