Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: which command doesn't work



Cesar Romani wrote:
> If my first command on the shell is:
> zsh$ls -l |less
> it takes the last version of less, namely:
> zsh$which less
> /c/Programmi/GnuWin32/bin/less
> 
> But if my first command is:
> zsh$which less
> /usr/local/bin/less
> and then
> zsh$ls -l |less
> it takes the correct version.
> That's strange!

If you replace "which less" with "rehash", does it also find the right
version?  That would be a workaround (but shouldn't be necessary).

Is it possible that one of the "less"s is spelled with different
capitalization (not all lower case)?  We've seen some oddities with that
in the past on case-sensitive file systems.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



Messages sorted by: Reverse Date, Date, Thread, Author