From nobody Thu Oct 27 14:46:38 2022 X-Original-To: dev-commits-src-all@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 4MypR25Vwrz4gDDh; Thu, 27 Oct 2022 14:46:38 +0000 (UTC) (envelope-from git@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 4MypR251p5z3XK5; Thu, 27 Oct 2022 14:46:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666881998; 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; bh=5aSDuluE+ZaUqXMOslUW7nBpP5bS/fW/ZMcVEVw+IEI=; b=l0tNM2YF2Fu4rukuNavOwq6rPfgM/qy4vwlLrdmnObk1SrgivRSCCsHa1uHXrWB16IHRLH VbKCMVMD/0tIcwiMFaDORRQdjozGZWgYRsjOPUi6DvKHrlQIevjrVDTplFnhcpfJV/o8Bc O7Bwu7a37CUryP8D02xw9qTTJm+4ppJYaI82edTDh25SAuW0Y7okaPoq/rYPFRJ7zlP2La Z+NIr/ZzBBLf0w3x14RlDQSRxYPVnVO697OySvMPizVDh0WmvpV0sK+iin6OxiHN9AMU9q QbWfdt90IBe+WHBPtVfKwpxt8JBb0DVR+eyUFcJWnf8sbwi5X06or/2Sqj4XBg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4MypR243Zzz11Vy; Thu, 27 Oct 2022 14:46:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29REkcPA048484; Thu, 27 Oct 2022 14:46:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29REkceF048483; Thu, 27 Oct 2022 14:46:38 GMT (envelope-from git) Date: Thu, 27 Oct 2022 14:46:38 GMT Message-Id: <202210271446.29REkceF048483@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Dag-Erling=20Sm=C3=B8rgrav?= Subject: git: 8e096e24d434 - main - script: Correct -F in man page and usage string. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8e096e24d4344b6d3d16e24d58d5d8a0fa9733c9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666881998; 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; bh=5aSDuluE+ZaUqXMOslUW7nBpP5bS/fW/ZMcVEVw+IEI=; b=Ue334GDFGwzYUFhoK4Lb2TcX6K3mDYDwMQgj/PWi7IUh3lrv8758Cjt8U0AZwVrqzaE+ux NXbKOY5y1RZQ4cSV5nlle5wIY5MfsI7X6XAAgpWeHoMnWx5/pbozM309NWXYc8cRvO3OpF lmC9XMyqSXGW9rcg/qHNqeZ7JggrSEQl66bi08xSWPm+GEmfcrre19k9ylNE1mSO8NylBg R4gXpEEGg88NWRQ7GI2KdSPnTwUWDbLXmjno341favhEwomPpzXJ3zjboS1W//fGIiJIrS 9YnvRWg4Aiz8NfS5EwX+syXpznk76VtVAAOiFun9KKk2sH4qwOF19ELjRs5Gmw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666881998; a=rsa-sha256; cv=none; b=fcx099SbH1314zF/5Y8pH+iiBpXc8L3Q1ZUEZKKOuEO/o/H0Oo194amj59uTV3gC2vDeyK V2sb7+ryzKT+0zMJKTSFGr3412QnqMu0mn+heizwlJTr3SWDdU2fR6VfxKkrKNxI4Ohg+E dU2WsSI9V4mviaQxH34y6Trsp2vjLwahb/05TApP0pDwTNXhqmsAQj8otzvnYZoQyhLNr4 /+TOq6XXRPMQtjFyLgO1vDRazwWqZQww3+4sYZ61yG+1dTlMSTopIRy9wnxscGFNa9rXVT 8IeWvZ5QAwu/uA2RBIe8xdAHwcaAa4g9e3c8MRk+qv9mHAPHNyAAaeyqYdHCHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=8e096e24d4344b6d3d16e24d58d5d8a0fa9733c9 commit 8e096e24d4344b6d3d16e24d58d5d8a0fa9733c9 Author: Dag-Erling Smørgrav AuthorDate: 2022-10-26 18:08:12 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2022-10-27 14:46:09 +0000 script: Correct -F in man page and usage string. Sponsored by: Klara, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37138 --- usr.bin/script/script.1 | 7 +++---- usr.bin/script/script.c | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/usr.bin/script/script.1 b/usr.bin/script/script.1 index 36523148fa90..350a5e791e81 100644 --- a/usr.bin/script/script.1 +++ b/usr.bin/script/script.1 @@ -28,7 +28,7 @@ .\" @(#)script.1 8.1 (Berkeley) 6/6/93 .\" $FreeBSD$ .\" -.Dd March 9, 2022 +.Dd October 26, 2022 .Dt SCRIPT 1 .Os .Sh NAME @@ -36,8 +36,7 @@ .Nd make typescript of terminal session .Sh SYNOPSIS .Nm -.Op Fl aefkqr -.Op Fl F Ar pipe +.Op Fl aeFfkqr .Op Fl t Ar time .Op Ar file Op Ar command ... .Nm @@ -88,7 +87,7 @@ Accepted for compatibility with .Nm . The child command exit status is always the exit status of .Nm . -.It Fl F Ar pipe +.It Fl F Immediately flush output after each write. This will allow a user to create a named pipe using .Xr mkfifo 1 diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index 430f48ad63df..e947bac17f2e 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -366,7 +366,7 @@ static void usage(void) { (void)fprintf(stderr, - "usage: script [-adfkpqr] [-t time] [file [command ...]]\n"); + "usage: script [-adFfkpqr] [-t time] [file [command ...]]\n"); exit(1); }