On 22 July 2013 17:07, Chris Down <ch...@regentmarkets.com> wrote: > On 22 July 2013 18:52, Charlie Paul <charli...@gmail.com> wrote: >> But now we are looking at an even more obscure situation. > > If you really care, any POSIX shell should be able to do this as long > as you don't hit ARG_MAX: > > set -- * && echo "$#" >
This set command is simple, but still takes a long time, because the shell spends a long time doing the globbing of the *