[Bug 330633] Re: mc midnightcommander wrong $PS1 parser in command line input

Nuno Silva nuno at nunosilva.com
Thu Apr 2 13:00:51 UTC 2009


Just to give some more details:
The "complex" PS1 is set in ~/.bashrc, and comes from /etc/skel.

This happens when TERM=xterm, here:
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"

Midnight Commander doesn't like it, and the sub-shell prompt looks like this, while in the home dir:
--------------------------
Hint: You may specify the external viewer with the shell vars VIEWER or PAGER.
0;nuno at kubuntu: ~nuno at kubuntu:~$
1Help   2Menu   3View   4Edit   5Copy   6RenMov 7Mkdir  8Delete 9PullDn 10Quit
--------------------------

This happens in konsole and xterm. The easy workaround is to comment out
the PS1 line mentioned above. The Right Way (C) would be to fix mc.

This is only "cosmetic", but I'm addicted to mc since 199x, so... :-)

Regards,

-- 
mc midnightcommander wrong $PS1 parser in command line input
https://bugs.launchpad.net/bugs/330633
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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




More information about the universe-bugs mailing list