On 22 July 2013 17:07, Chris Down <[email protected]> wrote: > On 22 July 2013 18:52, Charlie Paul <[email protected]> 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 *
