bash troubles

Jarosław Kamper jack at jack.eu.org
Tue Nov 5 14:47:15 CET 2002


Dnia wto 5. listopad 2002 14:25, Michal Moskal napisał:
> On Tue, Nov 05, 2002 at 02:14:08PM +0100, lubos klokner wrote:
[...]
> Therfore login shell (as started with su -) will not read bashrc file.
> You can overcome it by inserting . /etc/bashrc to /etc/profile (in bash
> section), or . ~/.bashrc in ~/.bash_profile. In fact standard rc file
> from PLD skel does it:
>
> #v+
> # .bash_profile - file executed when logging in
>
> if [ -f ~/.bashrc ]; then
>         . ~/.bashrc
> fi
> #v-

[jack at pldworkstation jack]$ echo 'printf "ziew\n"' > ziew.sh
[jack at pldworkstation jack]$ chmod 755 ziew.sh && sudo chown root.root ziew.sh
[jack at pldworkstation jack]$ sudo mv ziew.sh /etc/profile.d/
[jack at pldworkstation jack]$ sudo su -
ziew
[root at pldworkstation root]$

-- 
Jarosław Kamper <jack at jack.eu.org>



More information about the pld-users-en mailing list