Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14514
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Add sleep builtin |
| Date | 2018-08-20 19:35 -0400 |
| Organization | ITS, Case Western Reserve University |
| Message-ID | <mailman.5343.1534808145.1292.bug-bash@gnu.org> (permalink) |
| References | <CAJnmqwZ1GUZRtGRHt8xy_-tdTjVsAQKt-toGAEn5e9gjFrR0vQ@mail.gmail.com> |
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 chet@case.edu http://tiswww.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Add sleep builtin Chet Ramey <chet.ramey@case.edu> - 2018-08-20 19:35 -0400
csiph-web