[net.unix-wizards] null pathnames

jjg@security.UUCP (Jeff Glass) (11/11/85)

>> 	Well, yes, more-or-less;  "the null file name refers to the current
>> directory" [The UNIX Time-Sharing System], and repeated slashes are ignored,
>> but (a) is this anything but a kludge so that "/" works? and (b) apart from
>> "/", has anyone ever used this facility in real-life?
>> 
>> 	V7 (but not some other systems) even allows "fred///" as a synonym
>> for "fred" (an ordinary file);  I can see no reason why this, and "///tmp//"
>> and so on, should not be errors.

One use I have found for this is in correcting pathname errors with the
csh history mechanism:

	% /usr/local/lib/uucp/uucico ...
	/usr/local/lib/uucp/uucico: Command not found.
	% ^local^
	/usr//lib/uucp/uucico ...
	%

/jeff
-- 
  security!jjg@mitre-bedford.ARPA				(MIL)
 {allegra,ihnp4,utzoo,philabs,uw-beaver}!linus!security!jjg	(UUCP)