On 2019-11-29 05:30, Rasmus Villemoes wrote:
* src/sleep.c: Accept ms suffix.
* doc/coreutils.texi (sleep invocation): Document it.

When one wants to sleep for some number of milliseconds, one can
do (at least in bash)

  sleep $(printf '%d.%03d' $((x/1000)) $((x%1000)))

but that's a bit cumbersome. Extend sleep(1) to also accept "ms" as a
suffix, so one can instead do

  sleep ${x}ms

Could be worth it to accept a few other suffixes like "us" and "ns".


Reply via email to