sh(1): Replace recommendation of use of -e with a note
This partially revertsb14cfdf665and 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 commit7bd8da72c5)
This commit is contained in:
parent
4fd560bc94
commit
1245f6e348
1 changed files with 4 additions and 6 deletions
10
bin/sh/sh.1
10
bin/sh/sh.1
|
|
@ -33,7 +33,7 @@
|
|||
.\"
|
||||
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
|
||||
.\"
|
||||
.Dd January 10, 2025
|
||||
.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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue