Nekochan Net

Official Chat Channel: #nekochan // irc.nekochan.net
It is currently Thu Aug 21, 2014 4:06 am

All times are UTC - 8 hours


Forum rules


Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Default diff on linux?
Unread postPosted: Thu Aug 23, 2012 11:08 am 
Offline
User avatar

Joined: Tue May 17, 2005 10:36 am
Posts: 222
Location: Caulifawnia
hi,

I have multiple copies of diff installed on my ubuntu. How do I tell which one is the default?
Somehow I have multiple installs of a couple of utilities I want to track down and weed out.

thanks.

_________________
Image x1 Image x2


Top
 Profile  
 
Unread postPosted: Thu Aug 23, 2012 9:04 pm 
Offline
User avatar

Joined: Wed Nov 01, 2006 10:37 pm
Posts: 2914
Location: NZ
Have you diff on them to find the difference between them?

I imagine you can't have more than one diff in /usr/bin

Are you refering to which package does it belong to? So you have multple packages claiming ownership of the same file? If that is the case I assume you are left with the one from the latest package to install.

This URLmight help. http://lists.netisland.net/archives/plu ... 00205.html

_________________
Land of the Long White Cloud and no Software Patents.


Top
 Profile  
 
Unread postPosted: Thu Aug 23, 2012 9:09 pm 
Offline
User avatar

Joined: Tue May 17, 2005 10:36 am
Posts: 222
Location: Caulifawnia
Is there a way to tell which one is the default utility? (i.e. which one the system executes?)


thanks

_________________
Image x1 Image x2


Top
 Profile  
 
Unread postPosted: Thu Aug 23, 2012 9:18 pm 
Offline
User avatar

Joined: Wed Nov 01, 2006 10:37 pm
Posts: 2914
Location: NZ
Code:
which


as in

Code:
which diff

_________________
Land of the Long White Cloud and no Software Patents.


Top
 Profile  
 
Unread postPosted: Fri Aug 24, 2012 2:27 pm 
Offline
User avatar

Joined: Wed May 07, 2008 6:47 pm
Posts: 322
Location: Seattle, WA
don't use 'which'. 'which' is a BS linuxism and a csh built-in everywhere else. on solaris calling 'which' from a bourne shell runs a script that starts with
Code:
#!/usr/bin/csh
, and is almost never what you actually want (because it sources .cshrc, and a long list of other reasons).

bourne shell uses 'type'. it's a built-in, and does what you want. unless you're actually already running csh. then carry on with 'which'.

Code:
$ type diff
diff is /usr/bin/diff
$ type type
type is a shell builtin
$ type vi
vi is aliased to `vim'

_________________
:OnyxR: :IRIS3130: :IRIS2400: :Onyx: :ChallengeL: :4D220VGX: :Indigo: :Octane: :Cube: :Indigo2IMP: :Indigo2: :Indy:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group