Your message dated Mon, 25 Mar 2024 15:48:29 +0100
with message-id <[email protected]>
and subject line Re: bash: CDPATH in POSIX mode breaks cd builtin if symlinks
exist
has caused the Debian Bug report #303113,
regarding bash: CDPATH in POSIX mode breaks cd builtin if symlinks exist
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.)
--
303113: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=303113
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bash
Version: 2.05b-24
Severity: normal
The problem can be recreated thusly:
$ cd /tmp
$ mkdir -p foo/bar
$ ln -s foo baz
$ cd baz
$
$ unset CDPATH
$ bash -c "cd bar" # OK
$ sh -c "cd bar" # OK
$
$ export CDPATH=/usr/src
$ bash -c "cd bar" # OK
$ sh -c "cd bar" # BAD
sh: line 1: cd: bar: No such file or directory
This problem affects anyone who is using the CDPATH feature of bash.
Perl and make, for example, invoke subshells as 'sh'. This bug has the
potential to break many things. An example would be "make menuconfig"
for the kernel (see 'cd include' in the Makefile) if /usr/src/linux
is a symlink.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing'), (300, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages bash depends on:
ii base-files 3.1.2 Debian base system miscellaneous f
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libncurses5 5.4-4 Shared libraries for terminal hand
ii passwd 1:4.0.3-31sarge1 change and administer password and
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 5.0-6
On Mon, 4 Apr 2005 13:39:49 -0700 "T. Perkins" <[email protected]> wrote:
Package: bash
Version: 2.05b-24
Severity: normal
The problem can be recreated thusly:
$ cd /tmp
$ mkdir -p foo/bar
$ ln -s foo baz
$ cd baz
$
$ unset CDPATH
$ bash -c "cd bar" # OK
$ sh -c "cd bar" # OK
$
$ export CDPATH=/usr/src
$ bash -c "cd bar" # OK
$ sh -c "cd bar" # BAD
sh: line 1: cd: bar: No such file or directory
Hi,
this issue does not seem to affect version 5.0-6 and later of bash. (The
tests have been run with `bash --posix` because the current `sh` is `dash`.)
Please reopen this bug if you can still reproduce this issue.
Regards,
--
Gioele Barabucci
--- End Message ---