summaryrefslogtreecommitdiffhomepage
path: root/DESIGN.md
diff options
context:
space:
mode:
Diffstat (limited to 'DESIGN.md')
-rw-r--r--DESIGN.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/DESIGN.md b/DESIGN.md
index ca10184..fad872e 100644
--- a/DESIGN.md
+++ b/DESIGN.md
@@ -841,6 +841,13 @@ Rules:
fields, and `command eval` still exiting on an error. `bench/README.md`
classifies every difference the two shells show on the `tests/posix`
corpus, and none of them is a zash bug.
+- The rule behind those two bullets: where zash and the z/OS `/bin/sh`
+ disagree, zash keeps the better behaviour as long as a script written
+ for IBM's ksh88 cannot tell the difference. The one case where it can
+ is the status of a failed redirection, assignment or `read`: 2 here
+ and 1 there. That stays, because POSIX does not pin the value and the
+ shells disagree among themselves (bash says 1, dash and FreeBSD sh
+ say 2), so no portable script can test for it.
- An expansion error in a command the shell prepares for a child
(a pipeline stage, `&`, `$( )`) is reported on the shell's stderr, not
on the stderr that command would have had.