Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2013 14:38:37 +0300
From:      Alexander Yerenkow <yerenkow@gmail.com>
To:        Quark <unixuser2000-fbsd@yahoo.com>
Cc:        Kenta Suzumoto <kentas@hush.com>, Joshua Isom <jrisom@gmail.com>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>, "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   Re: BSD sleep
Message-ID:  <CAPJF9wnGg8gjLew4ER9%2Byw47bX_9xXuZAgkZxfMVjYS_6CktJA@mail.gmail.com>
In-Reply-To: <1369801479.2670.YahooMailNeo@web190706.mail.sg3.yahoo.com>
References:  <20130528230140.A5B396F448@smtp.hushmail.com> <51A541B5.3010905@gmail.com> <1369801479.2670.YahooMailNeo@web190706.mail.sg3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>what is stopping from interpreting 1h in similar manner to 3600? i.e. from
now

No, this is user-friendly, and thus can't be done :)
But if think a second, sleep is used rarely by average users, mostly by
programmers and other scripts, and they should know better what they are
doing.

Seriously, that explanation about different hours is not enough to prevent
at least useful option.
like
sleep -f 1h
(-f means force convert, without it you can see good explanation why sleep
for 1 hour will be not sleep for 1 hour, and etc, and not get sleep at
all.).

Exact units in which sleeps happens (seconds, ticks, minutes, years) can be
described in manual page, even without accepting m,h - that info would be
useful for one.

P.S. There is already non-portable feature in sleep - non-integer, and I'm
sure that no one thought about some financists from various countries, who
used to specify long numbers with separator, e.g. 3.600, and this means for
them one hour and not 3 point 6 seconds.

-- 
Regards,
Alexander Yerenkow



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPJF9wnGg8gjLew4ER9%2Byw47bX_9xXuZAgkZxfMVjYS_6CktJA>