On Fri, 2002-11-08 at 13:31, Matthew Gregan wrote: > This only works in a small number of cases. What happens when the list > of files 'rm' is operating on is not in alphabetical order? Last time I checked (two minutes ago), the ordering of the names returned by glob(3) is dictated by the "LC_COLLATE" environment variable (see locale(7)), so it *is* in alphabetical order unless you have deliberately listed the files in a non-alphabetical order.
True, "0000AAAA" may not be globbed to the top in some locales, but they can use another filename :) > There is no guarantee that '0000AAAA' will one of the first files that > 'rm' attempts to remove. No, but it most cases (worst case?) it will be at the first file returned by glob(3). -- Michael JasonSmith http://www.cosc.canterbury.ac.nz/~mpj17/
