less 394 or 418 ?
Eric Tiffany
etiffany at alum.mit.edu
Wed Dec 31 22:20:52 PST 2008
On 12/31/08 10:23 PM, "Mark Hattam" <mark at dxradio.demon.co.uk> wrote:
>
> On 1 Jan 2009, at 03:04, Mark Hattam wrote:
>
>> I did a
>> sudo port install less
>>
>> and it installed @418. Yet, although it's in /opt/local/bin, when I
>> type a
>> less -V
>> it reveals itself as the version supplied by Apple, that sits in /
>> usr/bin.
> but why the need to quit/re-run (or quite possibly just open a new
> window/shell)?
>
>
Perhaps the Apple version was in the shell's cache. There used to be a a
"rehash" function in the shell, but now it is "hash -d".
I have these aliases defined:
alias more='less'
alias rehash='hash -d'
And doing 'hash -d' might have fixed your shell without having to
kill/restart.
ET
--
________________________________________________
Eric Tiffany | +1 413-458-3743
etiffany at alum.mit.edu | +1 413-627-1778 mobile
More information about the macports-dev
mailing list