[Top][All Lists]

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

Re: Add sleep builtin

From: Ilkka Virta
Subject: Re: Add sleep builtin
Date: Wed, 22 Aug 2018 15:54:44 +0300
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

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 / address@hidden

reply via email to

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