Re: toolchain/60432: sh(1) read return code documentation error
"Robert Elz via gnats" <[email protected]>
| Newsgroups | gmane.os.netbsd.bugs |
|---|---|
| Message-ID | <[email protected]> |
The following reply was made to PR toolchain/60432; it has been noted by GNATS. From: Robert Elz <[email protected]> To: [email protected] Cc: Subject: Re: toolchain/60432: sh(1) read return code documentation error Date: Sat, 18 Jul 2026 15:45:11 +0700 I failed to mention the PR number in the commit message that fixed this, so here it is a copy of that message for the PR. Date: Mon, 13 Jul 2026 10:46:21 +0000 From: "Robert Elz" <[email protected]> Subject: CVS commit: src/bin/sh To: [email protected] Message-Id: <[email protected]> Module Name: src Committed By: kre Date: Mon Jul 13 10:46:21 UTC 2026 Modified Files: src/bin/sh: miscbltin.c sh.1 Log Message: sh - read - handle read errors in read builtin It used to be (incorrectly) that a read error was treated the same as EOF in the read builtin utility. They should be errors, with a message, and exit status > 1. Now they are. To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/bin/sh/miscbltin.c cvs rdiff -u -r1.277 -r1.278 src/bin/sh/sh.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.