null pathnames
Jeff Glass
jjg at security.UUCP
Tue Nov 12 03:19:27 AEST 1985
>> 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 at mitre-bedford.ARPA (MIL)
{allegra,ihnp4,utzoo,philabs,uw-beaver}!linus!security!jjg (UUCP)
More information about the Comp.unix.wizards
mailing list