Your message dated Sun, 11 Sep 2011 14:15:37 -0500
with message-id <20110911191537.GA1099@elie>
and subject line Re: bash uses strcpy on overlapping strings
has caused the Debian Bug report #589084,
regarding bash: Incorrect treatment of \W in prompt
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
589084: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=589084
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bash
Version: 4.1-3
Severity: normal

It seems that the bash prompt incorrectly spells root directories like
/boot, /home etc. Other directories seem to work fine.

To reproduce:

1) Start bash. Set PS1 like this:

export PS1="\W $ "

2) Go to the folder /boot. The prompt now says:

bott $

3) Go to the folder /home. The prompt now says:

hmee $

I wasn't able to understand if this is related to the other reports about
the prompt, so I wrote a new report. Feel free to merge it if I was wrong.

Best regards
Torquil Sørensen


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

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash depends on:
ii  base-files                5.8            Debian base system miscellaneous f
ii  dash                      0.5.5.1-7      POSIX-compliant shell
ii  debianutils               3.4            Miscellaneous utilities specific t
ii  libc6                     2.11.2-2       Embedded GNU C Library: Shared lib
ii  libncurses5               5.7+20100313-2 shared libraries for terminal hand

Versions of packages bash recommends:
ii  bash-completion               1:1.2-2    programmable completion for the ba

Versions of packages bash suggests:
pn  bash-doc                      <none>     (no description available)

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 4.2-1~exp1

Jonathan Nieder wrote:
> Ian Campbell wrote:

>> I noticed this with /anfs (becomes "afss" with \W) and it seems to occur only
>> for 4 and 5 letter directory names in /.
>
> This was fixed by bash 4.1 patch 10.

Seems to be fixed in experimental, too.  Thanks, all.


--- End Message ---

Reply via email to