[Pkg-shadow-devel] Bug#476519: Bug#476519: shell-mode garbles input

Sven Joachim svenjoac at gmx.de
Wed Apr 23 06:58:42 UTC 2008


I've played a bit around with this bug.  Meanwhile bash got upgraded to
3.2 and behaves somewhat differently: when logging in as root on the
console and typing "su - nobody", nobody is immediately logged out on
the first keystroke, as if C-d had been typed.  However, I could not
reproduce it after moving /root/.bashrc out of the way.  I figured out
that sourcing /etc/bash_completion triggers the problem with the
following minimal /root/.profile and no /root/.bashrc:

--8<---------------cut here---------------start------------->8---
# ~/.profile: executed by Bourne-compatible login shells.

if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export PATH

mesg n
--8<---------------cut here---------------end--------------->8---

Here root's shell is /bin/bash and nobody's is /bin/sh, symlinked to
/bin/bash.  Maybe this is a bash issue after all.

Sven





More information about the Pkg-shadow-devel mailing list