> An element like ~/bin in the PATH variable is not searched by which
> because the test is [ -f "$ELEMENT/$PROGRAM" ] and there is no tilde 
> expansion within double quotes.
> 
> I propose the attached patch for replacing "~" by "$HOME" when an 
> element begins with "~/".

I think this is broken and that you are being misled by bash handling
PATH incorrectly.


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

Reply via email to