[K12OSN] chown script help needed (word of caution)

Michael C Wescott wescott at sc.rr.com
Mon Sep 5 02:11:26 UTC 2005


On Sun, 2005-09-04 at 15:25 -0400, John Baillie wrote:
> Les Mikesell wrote:
> 
> >I don't think you can physically embed a / in a file or directory
> >name.  
> >
> 
> I was shocked! but alas it's true.

Right. There are two characters not permitted in file names. One is
the / since it is used as the separator.  The other is the nul
character (0x00) since it is used as the terminator of the pathname
string. A pathname that end in a / (like "/home/xxx/") is actually
interpreted as "/home/xxx/." and is as valid as "/home/xxx".





More information about the K12OSN mailing list