less 394 or 418 ?
Andre Stechert
stechert at gmail.com
Wed Dec 31 22:07:24 PST 2008
Google for "shell rehash".
Cheers,
Andre
On Wed, Dec 31, 2008 at 7: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.
>>
>> iMac:~$ less -V
>> less 394
>> Copyright (C) 1984-2005 Mark Nudelman
>>
>> less comes with NO WARRANTY, to the extent permitted by law.
>> For information about the terms of redistribution,
>> see the file named README in the less distribution.
>> Homepage: http://www.greenwoodsoftware.com/less
>>
>> which is the same as
>> iMac:~ mark$ /usr/bin/less -V
>> less 394
>> Copyright (C) 1984-2005 Mark Nudelman
>>
>> less comes with NO WARRANTY, to the extent permitted by law.
>> For information about the terms of redistribution,
>> see the file named README in the less distribution.
>> Homepage: http://www.greenwoodsoftware.com/less
>>
>>
>>
>> Forcing it to use the Macports installed version ...
>>
>> iMac:~$ /opt/local/bin/less -V
>> less 418
>> Copyright (C) 1984-2007 Mark Nudelman
>>
>> less comes with NO WARRANTY, to the extent permitted by law.
>> For information about the terms of redistribution,
>> see the file named README in the less distribution.
>> Homepage: http://www.greenwoodsoftware.com/less
>>
>> Checking my $PATH ...
>> iMac:~$ echo $PATH
>>
>> /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
>>
>> yet it does seem to know about the MacPorts version ... so why the "394"
>> when I do a --version?
>> iMac:~ mark$ which less
>> /opt/local/bin/less
>>
>> in /opt/local/bin I see
>> -rwxr-xr-x 2 root admin 153324 1 Jan 02:52 less
>>
>> and in /usr/bin I see
>> -rwxr-xr-x 1 root wheel 254288 24 Sep 2007 less
>>
>>
>> Mark
>
>
> Ah ... quitting and re-running Terminal does make it "behave" as expected
> ... ie
> less -V
> brings up 418 ...
>
> but why the need to quit/re-run (or quite possibly just open a new
> window/shell)?
>
>
> Mark
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
>
More information about the macports-dev
mailing list