[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: (root) PATH ohne /sbin:/usr/sbin - welches Paket?



Markus Lechner <Macsun@arcor.de> wrote:
[...]
> Also ich benutze die bash und hab natürlich auch dort gesucht - aber
> eben *nur* in der .profiles ist überhaupt der Pfad angegeben und
> exportiert.  Wenn ich zur Kontrolle echos in den dotfiles plaziere,
> dann werden die in dieser Reihenfolge ausgegeben:
> .bash_profile (die ruft ja dann auch noch .bashrc auf)
> .bashrc

> Aber eben keine .profile - aber vielleicht wird die so früh
> ausgeführt, dass dieses echo einfach nie ausgegeben wird.

Nein, siehe bash(1) - INVOCATION
| 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.
[...]

Wenn du eine .bash_profile anlegst, wird .profile nicht ausgewertet.
                   cu andreas



Reply to: