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