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


Groups > gnu.bash.bug > #14520

Re: Add sleep builtin

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From don fong <dfong@dfong.com>
Newsgroups gnu.bash.bug
Subject Re: Add sleep builtin
Date Tue, 21 Aug 2018 13:32:52 -0700
Lines 30
Sender dfong@dfong.org
Approved bug-bash@gnu.org
Message-ID <mailman.5379.1534883583.1292.bug-bash@gnu.org> (permalink)
References <CAJnmqwZ1GUZRtGRHt8xy_-tdTjVsAQKt-toGAEn5e9gjFrR0vQ@mail.gmail.com> <2801c537-6f5e-a727-49ab-7fb1bc8c32f8@case.edu> <d581b1b3-63fd-2804-1673-f1ce0962f66f@iki.fi> <CAJnmqwZCQdF0f0kPuknrKaN=y1JovnP7ViU4fVwjP58NDri7=w@mail.gmail.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace usenet.stanford.edu 1534883584 30394 208.118.235.17 (21 Aug 2018 20:33:04 GMT)
X-Complaints-To action@cs.stanford.edu
Cc itvirta@iki.fi, bug-bash <bug-bash@gnu.org>, Chester Ramey <chet.ramey@case.edu>
To konsolebox <konsolebox@gmail.com>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=dfong-org.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=c7bec9hHD5emA6XkQYj7Hz67sj7LfeK2oUS9Wh3v7y4=; b=Xo90+5VAk/DrnBndfpVRRPzTGUKj5XlRnsr5eLjqVA6xDJ+l62PIAS95+5/Oq07Hm5 0ZJrp2kaP6T4tJqJ3G4Jkr9u60az6w8oo/yR070q4YcVQ3hviox4+P/WoC+iCdJm169/ d6UALpLL0XpoJKRwriEZtzqn4Mh9BDoM02reCqIFP8GXKNWPH4UZmdOW9FPw//vqKiMe qI1OGuEvlTb628RPyv8gfqz7zK5Z174ci8AJlQ3o3z97CXqGIxH3ch6s+KIOh+JFa3wN qEH0xDg6CT34aZa5s182YnDgGfe4CRQF4d76GV76BiIQfapMK7LbTBY8PRBrJr9o54+c lDlw==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=c7bec9hHD5emA6XkQYj7Hz67sj7LfeK2oUS9Wh3v7y4=; b=kUFavyLPLGr6klNCta5Fzc0Eb+/3WvitBrlOJwt3/Bbu2vziKjNe0lRSiiAwSkb64+ CK1D3uhQF4pP+g+qQpNbGIXtb5CaCf2r1XoHyApn1g7Jm66V7DuUtI+nC+vTMjvIyMuu TtYmxPpcLnKyxXFdgGh54+AiCHLlMK1wHGVBgjuHjWeBDK1U/AioqzwYHaSKBV3dwfZP pSpSEqmIoHjCkzLNdxQEtsq9vZYh+BqTJCuejSEpxPn/Bksyr8dLFXHIqGdm0wiLHRiG RjXoaAbU+qM0lp4NX5SORQB1Ap/1BVZVtqdMfJsU0NgHxYbFIDP42X3Zpyc1gGn+fSmz yhBQ==
X-Gm-Message-State AOUpUlGfwNhTnKy0qQQ07LSBuLu4jIdE6TTGc1waXMh/HVWJz6z/c12G gUhKyJgqFgNbU55I8yBXrfeAEUfbjYk9l0EIIrDMcQ==
X-Google-Smtp-Source AA+uWPy6dpbpqJL2+vBtm7zkRTZmtQfVtameKCDAVJxUYU7GRzRLCqa2mygTPAb73ntqolgft9no/3j/svmlrNow2Bw=
X-Received by 2002:a50:95a8:: with SMTP id w37-v6mr17749425eda.33.1534883572984; Tue, 21 Aug 2018 13:32:52 -0700 (PDT)
X-Originating-IP [2600:1700:cd00:dfb0:5f1:2bf6:bf2a:fd9f]
In-Reply-To <CAJnmqwZCQdF0f0kPuknrKaN=y1JovnP7ViU4fVwjP58NDri7=w@mail.gmail.com>
X-Google-Sender-Auth tdrxXOpMlzzH9w8Tsnvda71cP1Y
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2a00:1450:4864:20::52a
X-Content-Filtered-By Mailman/MimeDel 2.1.21
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:14520

Show key headers only | View raw


wouldn't it be less confusing if the proposed built-in sleep function were
given a new name instead of overloading "sleep"?


On Tue, Aug 21, 2018 at 4:34 AM, konsolebox <konsolebox@gmail.com> wrote:

> 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 gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Add sleep builtin don fong <dfong@dfong.com> - 2018-08-21 13:32 -0700

csiph-web