[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: readdir() on linux



marco <mmechelli@xxxxxxxxxx>:

> Ok, does anybody know if the same applies to other unices (e.g.:
> AIX/Solaris)?
> I would like to understand how Linux compare to these commercial OS's.

I didn't notice any difference when I tried the following:

mkdir t
cd t
x=0; while [ $x -lt 255 ] ; do x=$[$x+1] ; printf "" > "$(printf "\x$(printf "%02x" $x)")" ; done
for x in ? ; do echo -n "$x" ; done | od -Ax -tx1

There were 252 files created: all octet values except '\0', '.', '/'
and '\n' - the latter due to a limitation of the shell, I assume.
Shell scripts don't work very well with file names containing a
newline ...

Edmund
--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/