Subject: [PATCH] ash: make 'sleep' a builtin

shawnlandden at tutanota.com shawnlandden at tutanota.com
Thu Sep 8 21:35:08 UTC 2022


Thanks for merging this feature.

The builtin is exiting ash in two cases:

1.If no argument is given (also does not print usage of sleep, but ash---look at how printf handles his)
2.If xatou() interpretation of the number fails. This is a bit more involved to fix, which is why I didn't send my patch for #1.


30 ago 2022, 8:14 por vda.linux at googlemail.com:

> On Tue, Aug 30, 2022 at 10:10 AM David Laight <David.Laight at aculab.com> wrote:
>
>>
>> One question is why?
>>
>> Shell builtins (mostly) exist to speed things up.
>>
>> But sleep doesn’t need speeding up.
>>
>
> Avoiding having another, possibly long-living process
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20220908/262d46f4/attachment-0001.html>


More information about the busybox mailing list