bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add sleep builtin


From: Chet Ramey
Subject: Re: Add sleep builtin
Date: Mon, 20 Aug 2018 19:35:33 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 8/19/18 10:25 AM, konsolebox wrote:
> Hi Chet,
> 
> The sleep command is often used in loops and using the external sleep
> is expensive.  Perhaps we can add the sleep builtin but have it
> disabled by default to avoid syntax conflict with the external one.

I don't think there's a problem with a `syntax conflict' as long as any
builtin sleep accepts a superset of the POSIX options for sleep(1).

I'm going to wait until after bash-5.0 is released before considering
this. In the meantime, there is the loadable version, which is now built
and installed by default when you run `make install'.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]