Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: which command doesn't work
- X-seq: zsh-users 14192
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Cesar Romani <cesar.romani@xxxxxxxxx>
- Subject: Re: which command doesn't work
- Date: Sat, 13 Jun 2009 20:29:13 +0100
- Cc: zsh-users@xxxxxxxxxx, pws@xxxxxxxxxxxxxxxxxxx
- In-reply-to: Message from Cesar Romani <cesar.romani@xxxxxxxxx> of "Fri, 12 Jun 2009 23:52:31 CDT." <h0vbao$ric$1@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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