Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14518 > unrolled thread
| Started by | konsolebox <konsolebox@gmail.com> |
|---|---|
| First post | 2018-08-21 19:34 +0800 |
| Last post | 2018-08-21 19:34 +0800 |
| 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.
Re: Add sleep builtin konsolebox <konsolebox@gmail.com> - 2018-08-21 19:34 +0800
| From | konsolebox <konsolebox@gmail.com> |
|---|---|
| Date | 2018-08-21 19:34 +0800 |
| Subject | Re: Add sleep builtin |
| Message-ID | <mailman.5360.1534851290.1292.bug-bash@gnu.org> |
On Tue, Aug 21, 2018 at 4:23 PM Ilkka Virta <itvirta@iki.fi> wrote: > > On 21.8. 02:35, Chet Ramey wrote: > > I don't think there's a problem with a `syntax conflict' as long as any > > builtin sleep accepts a superset of the POSIX options for sleep(1). > > The sleep in GNU coreutils accepts suffixes indicating minutes, hours > and days (e.g. sleep 1.5m or sleep 1m 30s for 90 seconds). I didn't > see support for those in konsolebox's patch, so while that's not > conflicting syntax per se, the lack of that option might trip someone. That was intended, and this patch is basically just a copy of the loadable version. I don't really find it necessary to make the builtin sleep a complete copy of the external one. The code would significantly increase if we add a parser for those formats. Also it's basically people's fault for not reading documentation. One should be aware enough if they enable the builtin. Mksh's sleep also does the same. Anyway I respect whatever Chet decides it to become. -- konsolebox
Back to top | Article view | gnu.bash.bug
csiph-web