Apple ][/II/2
Sridhar Ayengar
ploopster at gmail.com
Tue Mar 4 07:21:30 CST 2008
Cameron Kaiser wrote:
>>> Except, in UNIX, one can have a completely *valid* filename with
>>> slashes in it. Or almost any other character in the system
>>> character-set really.
>>>
>>> Peace... Sridhar
>>>
>> Unix filenames can't have slashes in them (everything except slash and
>> null is allowed). All Unices that I know of would interpret a path with
>> slashes in it as a path with subdirectories, not a filename.
>
> Oh really?
>
> % touch \/path
> % ls -l \/path
> -rw-r--r-- 1 luser luser 0 Mar 3 17:55 /path
> % pwd
> /home/luser
> % ls -l /path
> ls: /path: No such file or directory
> % rm \/path
> % ls -l \/path
> ls: /path: No such file or directory
That's exactly the behavior I got when I created a file with a slash in it.
Peace... Sridhar
More information about the cctalk
mailing list