Package: bash
Version: 3.2-4
Severity: normal

Current /etc/skel/.bashrc makes GNU Midnight Commander prompt under
XTerm (and, supposedly, under many other X terminals) unusable, as it
is not updated but rather appended to upon directory change. Also, it
starts with a parasitic ';0'.

The following patch solves the problem for me:

*** /etc/skel/.bashrc   2008-05-12 23:02:41.000000000 +0400
--- /home/pent/.bashrc  2008-12-30 13:06:56.000000000 +0300
***************
*** 59,65 ****
  # If this is an xterm set the title to u...@host:dir
  case "$TERM" in
  xterm*|rxvt*)
!     PS1="\[\e]0;${debian_chroot:+($debian_chroot)}...@\h: \w\a\]$PS1"
      ;;
  *)
      ;;
--- 59,66 ----
  # If this is an xterm set the title to u...@host:dir
  case "$TERM" in
  xterm*|rxvt*)
!     PROMPT_COMMAND='echo -ne "\033]0;${us...@${hostname}: ${PWD/$HOME/~}\007"'
      ;;
  *)
      ;;

I took the new version from my own .bashrc, which I think has been
copied from Debian-supplied /etc/skel/.bashrc some time ago. I'm not
sure though.

I'm ready to provide any additional info,
Andrey

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (1000, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash depends on:
ii  base-files                5              Debian base system miscellaneous f
ii  debianutils               2.30           Miscellaneous utilities specific t
ii  libc6                     2.8+20080809-1 GNU C Library: Shared libraries
ii  libncurses5               5.7+20081213-1 shared libraries for terminal hand

Versions of packages bash recommends:
ii  bash-completion               20080705   programmable completion for the ba

Versions of packages bash suggests:
ii  bash-doc                      3.2-4      Documentation and examples for the

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to