Something strange happens here. It gets executed when I start a new
shell, but not when I source it:

>From the end of my .bashrc:

echo a
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi
echo b

[EMAIL PROTECTED]:~$. .bashrc
a
[EMAIL PROTECTED]:~$   

[EMAIL PROTECTED]:~$ bash
a
b
[EMAIL PROTECTED]:~$             

And even when I relogin to the system it seems to work:

ssh foo
...
a
b


So the problem is only when sourcing the script, it seems.

-- 
.bashrc not executed to the end
https://bugs.launchpad.net/bugs/160405
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to