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 the "~" is maintained in paths
(and therefore, presumably, preferred).  (E.g., FIGNORE, CDPATH, MAILPATH.)

One not-quite-portable solution is to redefine which:

alias which="command -v"

(This doesn't work consistently for aliased commands, e.g., `which ls`
returns my alias for ls without a path to /usr/bin/ls.)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to