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
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]