#!/bin/rc

for(f in $*)
	for(p in $path)
		for(e in $pathext '')
			if(test -f $p/$f^$e)
				echo $p/$f^$e
