FileNames with the high bit set.
David Collier-Brown
daveb at geac.UUCP
Mon Apr 25 22:24:10 AEST 1988
In article <6258 at cit-vax.Caltech.Edu> mangler at cit-vax.Caltech.Edu (Don Speck) writes:
>One of the beautiful things about the filename syntax of older
>Unixes is that there was no such thing as an illegal filename.
>
>As the TCP people say, "be liberal in what input you accept".
The "filenames with the high bit set" problem was seen and dealt
with, once upon a time, by both Multics and Unix, by permitting the
mv-equivalent command to accept **any** string as a "from" name, but
only a "legal" string as a "to" name. This tends to decrease the
difficulty of switching to an 8- (or 9-)bit character set, as the
charset-sensitive code is rather centralized.
(In Unix the problem was both easier and harder: almost any
character is legal in a "to" name, and the shell interferes in
typing some characters directly. I confess I do not remember what
happens if the "from" name contains a slash or null. My reading of
the kernel implementation implies that it REALLY "can't happen": you
get an invalid path to the file.)
--dave (but what if a filesystem does it "wrong"?) c-b
--
David Collier-Brown. {mnetor yunexus utgpu}!geac!daveb
Geac Computers International Inc., | Computer Science loses its
350 Steelcase Road,Markham, Ontario, | memory (if not its mind)
CANADA, L3R 1B3 (416) 475-0525 x3279 | every 6 months.
More information about the Comp.unix.wizards
mailing list