On Wed, 9 Jun 2004 22:11:29 +0200 (CEST)
spooky <[EMAIL PROTECTED]> wrote:

> Hallo,
> ich habe in meiner .bash_profile
Aus dem Kontext entnehme ich, dass es sich um das globale Configfile handelt, solltest 
du aber mit angeben .....

> u.a. folgende Einträge vorgenommen:
> ******************************************************
> # set PATH so it includes user's private bin if it
> exists
> if [ -d ~/bin ] ; then
>     PATH=~/bin:"${PATH}"
> fi
>  
> # do the same with MANPATH
> if [ -d ~/man ]; then
>     MANPATH=~/man:"${MANPATH}"
>     export MANPATH
> fi
>  
> # Java
> if ! echo ${PATH} | grep -q /opt/j2sdk1.4.2_04/bin ;
> then
>         export PATH=/opt/j2sdk1.4.2_04/bin:${PATH}
>         fi
> if ! echo ${PATH} | grep -q /opt/j2sdk1.4.2_04/jre/bin
> ; then
>         export PATH=/opt/j2sdk1.4.2_04/jre/bin:${PATH}
>         fi
> export JAVA_HOME=/opt/j2sdk1.4.2_04
> export
> CLASSPATH=.:/opt/j2sdk1.4.2_04/lib/tools.jar:/opt/j2sdk1.4.2_04/jre/lib/rt.jar
> ******************************************************
> 
> Dennoch werden Skripten in meinem ~/bin Ordner oder
> auch java ( auch nach Neustart) erst nach
> $ source .bash_profile
> erkannt.
> Wie kann das sein?
> Warum gibts unter Debian eigentlich keinen
> /etc/profile.de/ Ordner, in dem man Pfade usw. für
> alle User setzen kann?
> 
Ich zitiere aus der bash(1) Manpage:

[quote]The following paragraphs describe how bash executes its startup files.  If any 
of the files exist but cannot be read, bash reports an error.  Tildes are expanded in  
file names as described below under Tilde Expansion in the EXPANSION section.

When  bash  is  invoked  as  an  interactive  login shell, or as a non-interactive 
shell with the --login option, it first reads and executes commands 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.  The --noprofile option may 
be used when the shell is started to inhibit this behavior.[/quote]

Meine Ansicht nach geht daraus eindeutig hervor, dass die systemweite Config 
/etc/profile ist, und nicht /etc/bash_profile ... (abgesehen davon, dass sich dafür 
eher die /etc/bash.bashrc eignen würde ...).
Mit anderen Worten (und falls ich dich nicht missverstanden habe):
RTFM

MfG
Ronald aka Warui

-- 
Hi! I'm a .signature virus. Copy me into
your ~/.signature to help me spread!

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT/L/MU/SS/TW/CM d->+ s-:- a19 C++(+++) UL++>++++ P+>++ L+++>++++ E-
W+++>$ N++ o? K? w+@ O? M? V? PS@ PE@ Y? PGP t- 5? X@ R(+) !tv b+++(++++)
DI? D+ G+>++ e h+>++ r% y+(*)
------END GEEK CODE BLOCK------

Antwort per Email an