Package: bash
Version: 3.2-2
Severity: normal

Hello,

After the latest sid upgrade of bash, I experienced the same bug as reported 
here:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/160405

I had the following in my ~/.bashrc, redundant, but probably there for already 
quite some time :-).

if [ -f /etc/bash_completion ]; then
    source /etc/bash_completion
fi

In /etc/bash.bashrc, the same piece of code was uncommented, making it to be 
loaded twice.

When /etc/bash_profile is loaded in both /etc/bash.bashrc and in ~/.bashrc, the 
~/.bashrc file will fail to load, without any notice.

A way to solve the problem is provided here: 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=430501, but this has to be 
placed not only in the /etc/bash.bashrc, but in the every instance (so in fact 
also ~/.bashrc). Probably it would also be useful to have a warning that 
something is happening (eg "failed to load .bashrc", "attempt to load 
/etc/bash_completion twice, failure",...), or a notice in the NEWS.Debian, 
README.Debian whatever file.

I think an alternative and better solution would be to include the following in 
/etc/bash_completion

if [ -z "$BASH_COMPLETION" ]
   <current /etc/bash_completion>
fi

Let me know if you need more information.

Best regards,

Dirk Van Hertem

PS: thanks to themill, on [EMAIL PROTECTED] for helping to find the cause and 
the related bugs...

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash depends on:
ii  base-files                4.0.3          Debian base system miscellaneous f
ii  debianutils               2.28.4         Miscellaneous utilities specific t
ii  libc6                     2.7-10         GNU C Library: Shared libraries
ii  libncurses5               5.6+20080419-1 Shared libraries for terminal hand

Versions of packages bash recommends:
pn  bash-completion               <none>     (no description available)

-- no debconf information

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to