Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh Simplify convoluted language, and remove incorrect st...



details:   https://anonhg.NetBSD.org/src/rev/a12fb246552b
branches:  trunk
changeset: 832195:a12fb246552b
user:      kre <kre%NetBSD.org@localhost>
date:      Thu May 03 00:32:11 2018 +0000

description:
Simplify convoluted language, and remove incorrect statement
(that I added a while ago) about what is required by POSIX.

diffstat:

 bin/sh/sh.1 |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (26 lines):

diff -r 9127b0cc1194 -r a12fb246552b bin/sh/sh.1
--- a/bin/sh/sh.1       Wed May 02 22:11:49 2018 +0000
+++ b/bin/sh/sh.1       Thu May 03 00:32:11 2018 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: sh.1,v 1.204 2018/05/02 21:43:38 pgoyette Exp $
+.\"    $NetBSD: sh.1,v 1.205 2018/05/03 00:32:11 kre Exp $
 .\" Copyright (c) 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
@@ -2321,15 +2321,12 @@
 .Xr fcntl 2
 .Dv F_SETFD /
 .Dv FD_CLOEXEC ) ,
-unless the descriptors to which they point refer to the standard input,
+unless the descriptors refer to the standard input,
 output, or error (file descriptors 0, 1, 2).
 Traditionally Bourne-like shells
 (except
 .Xr ksh 1 ) ,
 made those file descriptors available to exec'ed processes.
-This behavior is required by the POSIX standard, so when the
-.Cm posix
-option is set, this shell also acts that way.
 To be assured the close-on-exec setting is off,
 redirect the descriptor to (or from) itself,
 either when invoking a command for which the descriptor is wanted open,



Home | Main Index | Thread Index | Old Index