Your message dated Mon, 5 Sep 2005 13:58:50 +0200
with message-id <[EMAIL PROTECTED]>
and subject line bash is wrong to do tilde expansion on elements of PATH
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 25 Jan 2005 22:15:37 +0000
>From [EMAIL PROTECTED] Tue Jan 25 14:15:37 2005
Return-path: <[EMAIL PROTECTED]>
Received: from relay1.mail.vrmd.de [81.28.232.18] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CtYyG-0005A0-00; Tue, 25 Jan 2005 14:15:36 -0800
Received: from [217.82.166.53] (helo=dummy.kl2.local)
        by vm8.bln2.vrmd.de with asmtp (Exim 4.41)
        id 1CtYxg-0005rZ-DN
        for [EMAIL PROTECTED]; Tue, 25 Jan 2005 23:15:00 +0100
Received: from kwbr by dummy.kl2.local with local (Exim 4.43)
        id 1CtYxf-0003gV-3i
        for [EMAIL PROTECTED]; Tue, 25 Jan 2005 23:14:59 +0100
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Kai Weber <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: debianutils: 'which' does not find files in hidden directories (.bin)
X-Mailer: reportbug 3.6
Date: Tue, 25 Jan 2005 23:14:58 +0100
Message-Id: <[EMAIL PROTECTED]>
X-Relay-User: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: debianutils
Version: 2.11.2
Severity: normal

Today I discovered:

$ echo $PATH
~/.bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
$ ls -l .bin/rot13
-rwxr-xr-x  1 kwbr kwbr 38 May 23  2003 .bin/rot13
$ echo huh | rot13
uhu
$ which rot13

Huh? Where is my rot13?

$ strace -e stat64 which rot13
stat64("/home/kwbr", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
stat64("~/.bin/rot13", 0xbffff0b0)      = -1 ENOENT (No such file or directory)
stat64("/usr/local/bin/rot13", 0xbffff0b0) = -1 ENOENT (No such file or 
directory)
stat64("/usr/bin/rot13", 0xbffff0b0)    = -1 ENOENT (No such file or directory)
stat64("/bin/rot13", 0xbffff0b0)        = -1 ENOENT (No such file or directory)
stat64("/usr/bin/X11/rot13", 0xbffff0b0) = -1 ENOENT (No such file or 
directory)stat64("/usr/games/rot13", 0xbffff0b0)  = -1 ENOENT (No such file or 
directory)
$ mkdir bin
$ mv .bin/rot13 bin/
$ export PATH=~/bin:$PATH
$ which rot13
/home/kwbr/bin/rot13
$ strace -e stat64 test -f ~/.bin/rot13
stat64("/home/kwbr/.bin/rot13", {st_mode=S_IFREG|0755, st_size=38, ...}) = 0

Is this behaviour explainable? Maybe it is a problem with coreutils "test"?

Regards, Kai


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=C, [EMAIL PROTECTED] (charmap=UTF-8)

Versions of packages debianutils depends on:
ii  coreutils                   5.2.1-2      The GNU core utilities
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information

---------------------------------------
Received: (at 292253-done) by bugs.debian.org; 5 Sep 2005 11:58:54 +0000
>From [EMAIL PROTECTED] Mon Sep 05 04:58:54 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mail.cs.tu-berlin.de [130.149.17.13] (root)
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1ECFck-0004sT-00; Mon, 05 Sep 2005 04:58:54 -0700
Received: from mailhost.cs.tu-berlin.de ([EMAIL PROTECTED] [130.149.17.13])
        by mail.cs.tu-berlin.de (8.9.3p2/8.9.3) with ESMTP id NAA26193
        for <[EMAIL PROTECTED]>; Mon, 5 Sep 2005 13:58:51 +0200 (MEST)
Received: from localhost (localhost [127.0.0.1])
        by mailhost.cs.tu-berlin.de (Postfix) with ESMTP id 379B2FD4B
        for <[EMAIL PROTECTED]>; Mon,  5 Sep 2005 13:58:51 +0200 (MEST)
Received: from mailhost.cs.tu-berlin.de ([127.0.0.1])
 by localhost (bueno [127.0.0.1]) (amavisd-new, port 10224) with ESMTP
 id 25734-34 for <[EMAIL PROTECTED]>;
 Mon,  5 Sep 2005 13:58:51 +0200 (MEST) 14053
Received: from bolero.cs.tu-berlin.de (bolero.cs.tu-berlin.de [130.149.19.1])
        by mailhost.cs.tu-berlin.de (Postfix) with ESMTP
        for <[EMAIL PROTECTED]>; Mon,  5 Sep 2005 13:58:50 +0200 (MEST)
Received: (from [EMAIL PROTECTED])
        by bolero.cs.tu-berlin.de (8.12.10+Sun/8.12.8/Submit) id j85BwoJv020450;
        Mon, 5 Sep 2005 13:58:50 +0200 (MEST)
From: Matthias Klose <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <[EMAIL PROTECTED]>
Date: Mon, 5 Sep 2005 13:58:50 +0200
To: [EMAIL PROTECTED]
Subject: Re: bash is wrong to do tilde expansion on elements of PATH
X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid
X-Virus-Scanned: by amavisd-new at cs.tu-berlin.de
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02

That's not reproducible with the current bash-3.0 from unstable
(shouldn't be reproducible with bash3 from stable).


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

Reply via email to