less 394 or 418 ?

Mark Hattam mark at dxradio.demon.co.uk
Wed Dec 31 19:04:33 PST 2008


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


More information about the macports-dev mailing list