On 2013-08-21 13:12, Ken Irving wrote: > Yes I do have some idea. I read the bash-bug list regularly, and many > times (even if you can't tell) refer to the wiki you host, read the FAQs, > RTFMs, try to absorb what wisdom I can, and in general try to improve on > the bash coding I do use. But this was a simple case where there are no > spaces in the names, I wanted to handle the contents of the directory in > more or less random order, and this was a simple if stupid way to do that.
Stating "the input will always look like X" when told code is inadequate is a good way to ensure breakage when input changes and you forget about the limitations of the approach(es) used.
pgpoYtM3gSsqE.pgp
Description: PGP signature