Package: bash
Version: 3.1-5
Severity: normal

Substring operations that are meant to return an empty string "" sometimes
return character "\177" instead.

eg:

A=""
B="${A:0}"
touch "/tmp/test/TEST${A:0}"

-> touch: cannot touch `/tmp/test/TEST\177': No such file or directory

touch "/tmp/test/TEST$B"

-> touch: cannot touch `/tmp/test/TEST': No such file or directory

The example above is contrived, here is another (more realistic) example:

A="abc"
touch "/tmp/test/TEST${A:3}"

-> touch: cannot touch `/tmp/test/TEST\177': No such file or directory

Until this is fixed we need to use intermediate variables in cases where
a string expansion could return an empty string.

According to Chet this was fixed in bash 3.2

Please backport this fix to the Debian version of bash, or start using
the 3.2 source directly.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages bash depends on:
ii  base-files                   3.1.16      Debian base system miscellaneous f
ii  debianutils                  2.17        Miscellaneous utilities specific t
ii  libc6                        2.3.6.ds1-4 GNU C Library: Shared libraries
ii  libncurses5                  5.5-3       Shared libraries for terminal hand

bash recommends no packages.

-- no debconf information



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

Reply via email to