From nobody Tue May 24 08:06:15 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 425471B3B330 for ; Tue, 24 May 2022 08:06:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L6mx265Yyz4qbZ for ; Tue, 24 May 2022 08:06:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B152920D82 for ; Tue, 24 May 2022 08:06:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24O86Erj022493 for ; Tue, 24 May 2022 08:06:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24O86EB2022492 for bugs@FreeBSD.org; Tue, 24 May 2022 08:06:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264162] /bin/sleep: Add optional units (seconds, minutes, hours, days) Date: Tue, 24 May 2022 08:06:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653379574; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=emhrxzuytOLqReHDkzzGeh2X2f/rPMYQwrOujeRam20=; b=ytTt/Fta/rzRT01ioX49TIGuYSQTWXq1MLQrUBVitb683lNF2BSF0TykfV6XmJy2Owg31p sOP8VcghPdYMyaefig4VdSlJC8cYArWayYykKv1AYcGs5GvY81BkMF8TmXhCNgOED4eZwi +WwP75PzvWjYbnjmQjjqv2kYoJmeUPHhZk804vJiGgsuC7asEyASMQ5UvNvER2/Ju8Zmic Hb8FNpZ8n5E6AughKlStppa3gF9yifVAQkOHuQWk3Sgl/BG7YT7RMrDyP0qblMy0XvJnzV 1TsC72rK+5BvYu89VhOqSDM9i/5b1pRbjJykUnKy2Re+DcJFbrhewN4EjmSisg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653379574; a=rsa-sha256; cv=none; b=iFGY07psvmRumYThSXEcDohZtmdRHBEy0wece1+BaqSeKykgcizKZ5spaSiia5yiklqW0f ZB2GK2/hMwUQoelmCiBfMJJYKGZbacN7W+ZXS5fo9YGp8pCcHBG26UOMFZ8oh1IcuaEWlc wnJ7681OnK6awWkjsYu2f9k7lnyT36UVlTGig8yVicSu89zlzsyi8NrZq27gqwkHltWB2M SY2DUUp/Drbtf24266w5ycH0RJZQXZHVmp+jkKIsZUVqyqWATcZJKPtdOi27ZSwmrqN3fl rSSm1pF0xD5u0GM3QULSGjfbWM0IjOTOCwKvA3qYa+jBZusGtbVDJDkjMuI7qg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264162 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D34978f7edd15ef5aa9c14a6eecb18ae5d= 6fd8842 commit 34978f7edd15ef5aa9c14a6eecb18ae5d6fd8842 Author: A. Mallory AuthorDate: 2022-05-24 07:43:38 +0000 Commit: Stefan E=C3=9Fer CommitDate: 2022-05-24 07:43:38 +0000 bin/sleep: add support for units other than seconds The coreutils version of this command accepts a unit designation of s, m, h, or d (for seconds, minutes, hours, days) immediately following the number of (fractional) units to delay. The submitted patch has been modified in one detail: the test meant to detect the presence of the unit modified was not specific (!=3D 1) and would have accepted a non-numeric initial element or extra characters following the union. The committed version accepts only the number immediately followed by one of the defined unit designators and no further characters. PR: 264162 MFC after: 1 week bin/sleep/sleep.1 | 12 ++++++++++-- bin/sleep/sleep.c | 18 +++++++++++++++--- 2 files changed, 25 insertions(+), 5 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=