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


Groups > gnu.bash.bug > #14526

Re: Add sleep builtin

From Ilkka Virta <itvirta@iki.fi>
Newsgroups gnu.bash.bug
Subject Re: Add sleep builtin
Date 2018-08-22 15:54 +0300
Message-ID <mailman.5405.1534942788.1292.bug-bash@gnu.org> (permalink)
References <CAJnmqwZ1GUZRtGRHt8xy_-tdTjVsAQKt-toGAEn5e9gjFrR0vQ@mail.gmail.com> <83513822-23BF-4695-9542-F967512A8A3D@gmail.com> <5B7CB832.4080004@tlinx.org> <20180822122211.2fgtiendc3h3p3cf@eeg.ccf.org>

Show all headers | View raw


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

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Add sleep builtin Ilkka Virta <itvirta@iki.fi> - 2018-08-22 15:54 +0300

csiph-web