Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14514 > unrolled thread

Re: Add sleep builtin

Started byChet Ramey <chet.ramey@case.edu>
First post2018-08-20 19:35 -0400
Last post2018-08-20 19:35 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Add sleep builtin Chet Ramey <chet.ramey@case.edu> - 2018-08-20 19:35 -0400

#14514 — Re: Add sleep builtin

FromChet Ramey <chet.ramey@case.edu>
Date2018-08-20 19:35 -0400
SubjectRe: Add sleep builtin
Message-ID<mailman.5343.1534808145.1292.bug-bash@gnu.org>
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/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web