Re: [dev] [sbase] [patch] Optimize 'ls' and add '-U'

From: Calvin Morrison <mutantturkey_AT_gmail.com>
Date: Mon, 22 Jul 2013 17:27:18 -0400

On 22 July 2013 17:07, Chris Down <chris_AT_regentmarkets.com> wrote:
> On 22 July 2013 18:52, Charlie Paul <charlieap_AT_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 *
Received on Mon Jul 22 2013 - 23:27:18 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 22 2013 - 23:36:05 CEST