CheckDouble 1.0 by Christian Stieber ----------------------------------------------------------------------------- Copyright (C) 1994 Christian Stieber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ----------------------------------------------------------------------------- CheckDouble will first read all directories that are in the current path, storing the entries that match the following conditions: - the entry doesn't match #?.info - the entry is a file or a hard link to a file - the entry is not a soft link or a directory - the file is readable and executable - the file is at least 16 bytes long Then it checks for the following: 1) Duplicate command names This means that the programs checks whether there are two commands with the same name in your path. If it finds such a command name, it will output a list of the files found: > Duplicate commandname "MakeLink": > Work:System/c/MakeLink > System3.1:c/MakeLink The first file in the list gets executed when the command name is entered; in the example above I installed a new MakeLink command to override the one supplied by Commodore. 2) Identical files All files are compared with each other, and identical files are reported. For example, if you unpack the gcc256 distribution from aminet, CheckDouble will report (among other things): > Identical files: > Work:gcc/bin/grep > Work:gcc/bin/egrep > Work:gcc/bin/fgrep egrep and fgrep should be links to grep, but lha happily archives the files three times --- it doesn't know about links. CheckDouble will ignore links while comparing files. ----------------------------------------------------------------------------- Christian Stieber Konradstraße 41 D-85055 Ingolstadt (Germany) Currently (Feb '94) I'm a student and can be reached at: Christian Stieber Seitzstraße 6, Zi. 306 D-81539 München (Germany) EMail: stieber@informatik.tu-muenchen.de HTTP: http://www.informatik.tu-muenchen.de/~stieber/