Package: bash
Version: 3.1-4
Severity: normal

If you delete an executable on bash's PATH, it keeps looking for it
there anyway and then complains:

  $ mkdir /tmp/bin /tmp/binbin
  $ touch /tmp/{bin,binbin}/x
  $ chmod +x /tmp/{bin,binbin}/x
  $ PATH=/bin:/usr/bin:/tmp/bin:/tmp/binbin
  $ which x
  /tmp/bin/x
(the above is correct)
  $ x
(now delete it:)
  $ rm /tmp/bin/x
  $ which x
  /tmp/binbin/x
(the above is correct)
  $ x
  bash: /tmp/bin/x: No such file or directory

whereas it should run /tmp/binbin/x (esp. since 'which' knows about
it!).

-Sanjoy


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-rc4.16b785e2e77f
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)

Versions of packages bash depends on:
ii  base-files                    3.1.13     Debian base system miscellaneous f
ii  debianutils                   2.16       Miscellaneous utilities specific t
ii  libc6                         2.3.6-7    GNU C Library: Shared libraries
ii  libncurses5                   5.5-1.1    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