Received: by mail.netbsd.org (Postfix, from userid 605) id 609DC84E91; Sun, 13 Feb 2022 19:40:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 93C4584E8E for ; Sun, 13 Feb 2022 19:40:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id meBec6rrQWtw for ; Sun, 13 Feb 2022 19:40:14 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 3504884CEF for ; Sun, 13 Feb 2022 19:40:14 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 2DCB2FB24; Sun, 13 Feb 2022 19:40:14 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 13 Feb 2022 14:40:14 -0500 From: "Christos Zoulas" Subject: CVS commit: src/usr.bin/script To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20220213194014.2DCB2FB24@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Christos Zoulas" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: christos Date: Sun Feb 13 19:40:14 UTC 2022 Modified Files: src/usr.bin/script: script.c Log Message: 1. restore the previous finish() logic to make: script -e -c /usr/bin/true script -e -c /usr/bin/false exit with the proper exit code. 2. handle system return value correctly (nabijaczleweli) 3. factor out the conversion of wait status -> shell return code. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/usr.bin/script/script.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.