Your message dated Sun, 01 Jul 2012 13:02:12 +0000
with message-id <[email protected]>
and subject line Bug#659940: fixed in bash 4.2-3
has caused the Debian Bug report #659940,
regarding /etc/bash.bashrc dereferences undefined variable $debian_chroot
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.)


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

My "$HOME"/.bashrc does set -u, which causes it to warn about dereferencing undefined variables. Whenever I start a shell, I get a warning (in LANG=fi_FI.utf8) like this:

bash: debian_chroot: sitomaton muuttuja

The fix is simple. In /etc/bash.bashrc, replace $debian_chroot with ${debian_chroot:-}. This should work even in dash:

- if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
+ if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then

There are similar problems in the bash-completion package, which prompted me to uninstall it. (It spit out similar messages, and completion did not work at all when the package was installed.)


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

Kernel: Linux 3.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash depends on:
ii  base-files   6.5
ii  dash         0.5.7-2
ii  debianutils  4.2.1
ii  libc6        2.13-26
ii  libtinfo5    5.9-4

Versions of packages bash recommends:
pn  bash-completion  <none>

Versions of packages bash suggests:
pn  bash-doc  <none>

-- Configuration Files:
/etc/bash.bashrc changed:
[ -z "$PS1" ] && return
shopt -s checkwinsize
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
   debian_chroot=$(cat /etc/debian_chroot)
fi
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found ]; then
        function command_not_found_handle {
                # check because c-n-f could've been removed in the meantime
               if [ -x /usr/lib/command-not-found ]; then
                   /usr/bin/python /usr/lib/command-not-found -- "$1"
                  return $?
               elif [ -x /usr/share/command-not-found ]; then
                   /usr/bin/python /usr/share/command-not-found -- "$1"
                  return $?
                else
                   return 127
                fi
        }
fi


-- no debconf information



--- End Message ---
--- Begin Message ---
Source: bash
Source-Version: 4.2-3

We believe that the bug you reported is fixed in the latest version of
bash, which is due to be installed in the Debian FTP archive:

bash-builtins_4.2-3_amd64.deb
  to main/b/bash/bash-builtins_4.2-3_amd64.deb
bash-doc_4.2-3_all.deb
  to main/b/bash/bash-doc_4.2-3_all.deb
bash-static_4.2-3_amd64.deb
  to main/b/bash/bash-static_4.2-3_amd64.deb
bash_4.2-3.diff.gz
  to main/b/bash/bash_4.2-3.diff.gz
bash_4.2-3.dsc
  to main/b/bash/bash_4.2-3.dsc
bash_4.2-3_amd64.deb
  to main/b/bash/bash_4.2-3_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <[email protected]> (supplier of updated bash package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 01 Jul 2012 13:45:35 +0200
Source: bash
Binary: bash bash-static bash-builtins bash-doc
Architecture: source all amd64
Version: 4.2-3
Distribution: unstable
Urgency: low
Maintainer: Matthias Klose <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Description: 
 bash       - GNU Bourne Again SHell
 bash-builtins - Bash loadable builtins - headers & examples
 bash-doc   - Documentation and examples for the The GNU Bourne Again SHell
 bash-static - GNU Bourne Again SHell (static version)
Closes: 482194 655071 655208 659940 661386 674120
Changes: 
 bash (4.2-3) unstable; urgency=low
 .
   * Apply upstream patches 025 - 029, fixes for
     - When used in a shell function, `declare -g -a array=(compound 
assignment)'
       creates a local variable instead of a global one.
     - The `lastpipe' option does not behave correctly on machines where the
       open file limit is less than 256.
     - When the `extglob' shell option is enabled, pattern substitution does not
       work correctly in the presence of multibyte characters.
     - When using a word expansion for which the right hand side is evaluated,
       certain expansions of quoted null strings include spurious ^? characters.
     - Bash-4.2 tries to leave completed directory names as the user typed them,
       without expanding them to a full pathname.  One effect of this is that
       shell variables used in pathnames being completed (e.g., $HOME) are left
       unchanged, but the `$' is quoted by readline because it is a special
       character to the shell. This patch introduces two things:
       - A new shell option, `direxpand', which, if set, attempts to emulate the
         bash-4.1 behavior of expanding words to full pathnames during
         completion;
       - A set of heuristics that reduce the number of times special characters
         such as `$' are quoted when the directory name is not expanded.
   * Mark bash and bash-static as Multi-Arch: foreign . Closes: #674120.
   * Avoid warning for unset debian_chroot with -u (Marko Mäkelä).
     Closes: #659940.
   * Fix string expansion: \u and \U for code points U+0080 to U+00FF (Darran
     Salt). Closes: #661386.
   * Search $- for `i' for the interactivity test. Closes: #482194.
   * Search for bash_completion in /usr/share/bash-completion too.
     Closes: #655071, #655208.
Checksums-Sha1: 
 04817440526edf6f8c38d69685aae0b226d7fda6 1475 bash_4.2-3.dsc
 972b5ef177980f06eb00bbc32ad90ceff3547d2d 82783 bash_4.2-3.diff.gz
 2ae2160ca0e0f688e91b2a1fd1718683b419a929 694682 bash-doc_4.2-3_all.deb
 10cdbec619723b0f47f5f1d885337d55694fa0c7 1495908 bash_4.2-3_amd64.deb
 61cc816a8051c115b1ec690d2f6f3d2dc5a6ee13 112392 bash-builtins_4.2-3_amd64.deb
 4b96a96a4263002a3f427823d0faa19cbe5aedc5 932176 bash-static_4.2-3_amd64.deb
Checksums-Sha256: 
 8a2685ae9d05be37d54f068bcf827282f2b8b81eec79c9bc15495578b24a8230 1475 
bash_4.2-3.dsc
 4a8202e65c0ecf6540cb3756ac777e619c5d5a307fa46d74157b0cb354efece9 82783 
bash_4.2-3.diff.gz
 1ac545b3837d07b48b5f581c86199eef95e742f19d8e836fafa45f467a7a266c 694682 
bash-doc_4.2-3_all.deb
 12918bf9c5affa7508c3eedd7b7600098f146b6a91c94b15c1c964a1cea12cde 1495908 
bash_4.2-3_amd64.deb
 51c227efbb2d5dc3c922661db84e4072741031466e547baaea3de17d1962ba34 112392 
bash-builtins_4.2-3_amd64.deb
 aeeb9bb500c495673ef54fefcade8ebdafc9ceb5c35742bc2ed79a6764cfe5c4 932176 
bash-static_4.2-3_amd64.deb
Files: 
 f86757ffc48aef4a848e6963e482f700 1475 base required bash_4.2-3.dsc
 0d45b3f3424fff11acbe95b4501e59ca 82783 base required bash_4.2-3.diff.gz
 548d9bdb4d7ba52cbb60e24c9f278d37 694682 doc optional bash-doc_4.2-3_all.deb
 fb0e24d79bd765752d724564ec2a8c42 1495908 shells required bash_4.2-3_amd64.deb
 8701b276d0103897b8005f20f4dcc873 112392 utils optional 
bash-builtins_4.2-3_amd64.deb
 cca2e6d101b16a3c7e3f9b1afee89004 932176 shells optional 
bash-static_4.2-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk/wR0wACgkQStlRaw+TLJwqvACdF2JFl1wsT5egEM/Ac0fVML3A
hFAAnRdmY46VvBuTAajT+VpNibj9sDL+
=cV2B
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to