Source-Changes archive

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

CVS commit: src/bin/sh



Module Name:    src
Committed By:   kre
Date:           Tue May  9 05:14:03 UTC 2017

Modified Files:
        src/bin/sh: eval.c jobs.c nodetypes parser.c show.c

Log Message:
If we are going to permit
        ! ! pipeline
(And for now the other places where ! is permitted)
we should at least generate the logically correct exit
status:
        ! ! (exit 5); echo $?
should print 1, not 5.   ksh and bosh do it this way - and it makes sense.
bash and the FreeBSD sh echo "5" (as did we until now.)
dash, zsh, yash all enforce the standard syntax, and prohibit this.


To generate a diff of this commit:
cvs rdiff -u -r1.138 -r1.139 src/bin/sh/eval.c
cvs rdiff -u -r1.82 -r1.83 src/bin/sh/jobs.c
cvs rdiff -u -r1.14 -r1.15 src/bin/sh/nodetypes
cvs rdiff -u -r1.124 -r1.125 src/bin/sh/parser.c
cvs rdiff -u -r1.37 -r1.38 src/bin/sh/show.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index