From nobody Sat Mar 15 14:01:55 2025 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 4ZFNFw3QTFz5qr7Z; Sat, 15 Mar 2025 14:01:56 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZFNFv5Ts7z3wn4; Sat, 15 Mar 2025 14:01:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742047315; 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=+XZpQg8F7WHM4F0OYz6Z54CXfwRNknGnI5AFzs8uUw8=; b=jzJBT0IOhPr35OmjGAjF9Nb8WXlyTx/P1hYYsThC0BJmp0RwwbYErOxSXTC14q/kEhq0xz FDuqzbpi1bgQgjZf2aYp7k+zoQJfduGOrJ/bSEfOtL95TMf7lmMl6MaeFgHxsHF5GSfmjZ TM6qUEpyc1w4QZnSD8N0djozStLbUqSeb8WG/mRTKvEYhmVAZzYd2TnXdS5JKe5eeiy8pp 8kZGqvxhOlxyagZ/4FHeBbb2n/OE93ml2eJJDBBOnm9OFvjhD0qKzOcfTiYAMwC+gJm10z 7HOzvjupi3iYq1JAWl7TEhfI5rybAtRu+hYJ4Ynjs1m1M6SxNN/4GenG2KUMZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1742047315; a=rsa-sha256; cv=none; b=Cs21qi0T/+L0bO6vz9MGt1bOZXJcDVAlqRUhOKfL97ok2xO7GTcT9XPO27gd70WgemUXYx 3W2uKCAHAqD/O2UzO4s/JHTJDY/Z0/0/hxgaALEA74wqmo8feWKp4F/Z+GRQYeIxpb+Ewa V09mgZuTO7M2D1M2heXKPVMCEiv/lLBP4DjGAyDywRKiTbjZjyW0ceSWJLI6ZjyPkr6fH5 NsfJ6joeEZ03oMZR9Cb7T1s7it4e21rwg+kYMW6alcBNb2I70F1EyUg6/kLEJvbej3hkG2 VQgQK7WOxdZGoug9Hc3Ufb+67uqBFhGKSUZQlmFrAVgyJEC/QQOUlykOzKQlgw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742047315; 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=+XZpQg8F7WHM4F0OYz6Z54CXfwRNknGnI5AFzs8uUw8=; b=ByIZwdFi8WrHQtE3WefzUTk/sxGO2rJ4k+GnYyITUdGRuAg9wkslWh+ja1KWDuk1KNe6Hw ZXO/c/rhjA66pFQh1x5Bk/xgizfU1UyHkmTrMg4rG57wUViGG9sIXzDBIYQDMt1sgUZKTs C3t1Zo03SB4rqAAJhHR6DAbt/PuswLbQCGHFbpG2fc/PIeiIHedM5qHDI3Ppg795uhBmlu DQKS0rbVG/EjTvwz/w2jKXNaar9n4qcltGnCyZmWkrFHDWQeyFdCm9CVhwCHLBo14bnZhk 36rcjdDuFxfSghZAe7KfLCppUTLsgVZFDy0nC28rdUmLW93bbz7XK7q4+gwLlg== 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 4ZFNFv5475z2gc; Sat, 15 Mar 2025 14:01:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 52FE1tME021769; Sat, 15 Mar 2025 14:01:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 52FE1tAI021766; Sat, 15 Mar 2025 14:01:55 GMT (envelope-from git) Date: Sat, 15 Mar 2025 14:01:55 GMT Message-Id: <202503151401.52FE1tAI021766@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Osipov Subject: git: 61df1b78f906 - stable/13 - sh(1): Replace recommendation of use of -e with a note 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: michaelo X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 61df1b78f90681c015fade9b81b40ae1f379e1df Auto-Submitted: auto-generated The branch stable/13 has been updated by michaelo: URL: https://cgit.FreeBSD.org/src/commit/?id=61df1b78f90681c015fade9b81b40ae1f379e1df commit 61df1b78f90681c015fade9b81b40ae1f379e1df Author: Michael Osipov AuthorDate: 2024-05-03 07:57:06 +0000 Commit: Michael Osipov CommitDate: 2025-03-15 14:01:42 +0000 sh(1): Replace recommendation of use of -e with a note This partially reverts b14cfdf665bb8b7b2898a4ee5b073ab87f8ea3d0 and has been discussed in D42719. Reviewed by: jrm (mentor), otis (mentor), mandree, ziaee (manpages) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45073 (cherry picked from commit 7bd8da72c5814b486ae7f492286fe3ac0a5bf03d) --- bin/sh/sh.1 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index 93504c00aab7..4cdc5b8d6239 100644 --- a/bin/sh/sh.1 +++ b/bin/sh/sh.1 @@ -33,7 +33,7 @@ .\" .\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95 .\" -.Dd November 20, 2024 +.Dd March 8, 2025 .Dt SH 1 .Os .Sh NAME @@ -240,11 +240,9 @@ If a shell function is executed and its exit status is explicitly tested, all commands of the function are considered to be tested as well. .Pp -It is recommended to check for failures explicitly -instead of relying on -.Fl e -because it tends to behave in unexpected ways, -particularly in larger scripts. +Note that many commands return non-zero values to convey information other +than errors, which can cause unexpected program termination with +.Fl e . .It Fl f Li noglob Disable pathname expansion. .It Fl h Li trackall