Note on the symbolic dereferencing
----------------------------------

The code for finding a symlink in binstats is imperfect, rather convoluted
and slow (especially using GNU sed 2.05). So it's time to write a little C
program using lstat(2) <sys/stat.h> and readlink(2) (BSD) <unistd.h> to
actually do the work of the shell routine.


preliminary structure of derefsymlink
=====================================

purpose:
	take a filename or list of filenames or a file of filenames and
	churn out absolute filenames after dereferencing all the symbolic
	links (silent error out if it doesn't exist)

interface:
	three modes are available for input - argv list, stdin, file list
	two output modes - stdout or file

flow control:
	parse command line
	decide operating mode - 1 a bit hard compared to the other two
     0) get filename
	if filename is not absolute then append to current directory
     1) get rid of '../'
	get rid of './'
	check if file exists then
     2)		if file == symlink then dereference it and go to 1)
		else remove end filename and go to 2)
	else error
	if another filename then go to 0)
	else end

danger:
	symlinks could be circular (how do I check this?)
	by counting recursion depth
