[svlug] Re: [svlug]how to copy a bunch of "." files?
J C Lawrence
claw at kanga.nu
Sat May 6 20:04:10 PDT 2000
On Sat, 6 May 2000 16:57:33 -0700
Joey Hess <joey at kitenet.net> wrote:
> If the directory contains files named 1 through 10, this causes
> the following programs to run, in sequence:
POSIX does not in fact guarantee that the order of filenames in a
directory file is sorted in any fashion other than random (a few
tests with Linux suggests it doesn't change this). Further, find(1)
makes no claims about sorting the contents of a directory in
recursing thru it.
Unless you explicitly put a sort in there, via ls, sort, whatever,
you can not rely on order of processing of directories.
J C Lawrence Home: claw at kanga.nu
----------(*) Other: coder at kanga.nu
--=| A man is as sane as he is dangerous to his environment |=--
More information about the svlug