Bug#493269: /usr/bin/which does not expand ~

2009-02-03 Thread Clint Adams
On Mon, Feb 02, 2009 at 02:38:55PM -0800, Daniel Smith wrote: I'm inclined to agree with the original bug reporter. Either that or it's a feature of bash: in my .profile I would call it a bug rather than a feature. export PATH=~/bin:$DEFPATH Why do you have ~/bin within double quotes? --

Bug#493269: /usr/bin/which does not expand ~

2009-02-02 Thread Daniel Smith
I'm inclined to agree with the original bug reporter. Either that or it's a feature of bash: in my .profile export PATH=~/bin:$DEFPATH My PATH evaluates as ~/bin:/usr/local/bin:/usr/bin:/bin:/usr/games This only seems to cause problems with which. The bash manpage has several examples where

Bug#493269: /usr/bin/which does not expand ~

2008-08-01 Thread Carlos Garza
Package: debianutils Version: 2.28.2-0ubuntu1 If a users sets a private directory such as ~/sbin in their PATH the which command will not expand the ~ leaving it useless Steps to reproduce create an executable helloworld.sh script and place it in your ~/sbin add ~/sbin to your PATH execute

Bug#493269: /usr/bin/which does not expand ~

2008-08-01 Thread Clint Adams
On Fri, Aug 01, 2008 at 12:45:38PM -0500, Carlos Garza wrote: If a users sets a private directory such as ~/sbin in their PATH the which command will not expand the ~ leaving it useless If you're using bash, this is a bug in bash for not expanding the tildes when setting PATH. If not, which