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:           Mon Jun 19 03:21:31 UTC 2017

Modified Files:
        src/bin/sh: eval.c

Log Message:
Another fix from FreeBSD (this one from April 2009).

When processing a string (as in eval, trap, or sh -c) don't allow
trailing \n's to destroy the exit status of the last command executed.

That is:
        sh -c 'false

        '
        echo $?
should produce 1, not 0.


To generate a diff of this commit:
cvs rdiff -u -r1.149 -r1.150 src/bin/sh/eval.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