Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass exit status to parent on Ctrl+D
Reproducer: $ ksh $ false $ ^D (child ksh exits) $ echo $? 0 Expected output: 1, the exit status of 'false'. All shells except ksh93 pass the exit status of the last-executed command and this is also the POSIX standard behaviour. src/cmd/ksh93/sh/main.c: exfile(): - At the 'eof_or_error:' label, add a missing restore of the current exit status before jumping to 'done'.
- Loading branch information