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


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

Re: Add sleep builtin

Started byIlkka Virta <itvirta@iki.fi>
First post2018-08-22 15:54 +0300
Last post2018-08-22 15:54 +0300
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 Ilkka Virta <itvirta@iki.fi> - 2018-08-22 15:54 +0300

#14526 — Re: Add sleep builtin

FromIlkka Virta <itvirta@iki.fi>
Date2018-08-22 15:54 +0300
SubjectRe: Add sleep builtin
Message-ID<mailman.5405.1534942788.1292.bug-bash@gnu.org>
On 22.8. 15:22, Greg Wooledge wrote:
> Just for the record, the POSIX sleep command only accepts an "integral
> number of seconds specified by the time operand."  Sub-second sleep(1)
> is a GNUism.

Or ksh-ism? (Or does it even matter which one it is originally, since 
Bash is GNU Bash with features common with ksh.)

Regardless, subsecond sleeping is useful and Bash already supports 
handling subsecond times in at least 'read -t', so it's not that far 
fetched to implement it in 'sleep' too.


I'd still suggest supporting the features in GNU coreutils sleep, if an 
enabled-by-default builtin sleep is implemented. Just for those systems 
that happen to have both GNU Bash and GNU coreutils installed.

-- 
Ilkka Virta / itvirta@iki.fi

[toc] | [standalone]


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


csiph-web