[Bug 609146] Re: /usr/bin/which and /usr/bin/xargs do not find commands in $HOME/bin
Petr Gladkikh
609146 at bugs.launchpad.net
Mon Jul 29 12:10:00 UTC 2013
And by the way workaround replacing ~ with $PATH helps in my case. But
nonetheless I believe that behavior of 'which' should be consistent with
shell's lookup.
It is hard to believe that this problem have not be noted before. If
this is some known issue, can anyone point to explanation why it is not
corrected already?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debianutils in Ubuntu.
https://bugs.launchpad.net/bugs/609146
Title:
/usr/bin/which and /usr/bin/xargs do not find commands in $HOME/bin
Status in “debianutils” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: debianutils
I'm a little bit at loss with this problem and don't know where to
start debugging it. My $PATH is
PATH='~/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games',
but neither 'which' nor 'xargs' find executable shell scripts in
$HOME/bin. However, the bash magically 'knows' about these commands
and can execute them. Bash-completion with <TAB> works for them as
well. So I suppose that both which and xargs are somehow broken.
However, 'which' is able to find commands in /usr/bin, /usr/sbin, /bin
and /sbin. So this is very strange, looks as if 'which' and 'xargs'
ignore the current $PATH.
I would appreciate all help with this.
Thanks.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: debianutils 3.2.2
ProcVersionSignature: Ubuntu 2.6.32-23.37-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-23-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Jul 23 23:30:01 2010
ProcEnviron:
PATH=(custom, no user)
LANG=en_AU.UTF-8
SHELL=/bin/bash
SourcePackage: debianutils
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debianutils/+bug/609146/+subscriptions
More information about the foundations-bugs
mailing list