I was working on a project and need the abilities of script to record the interaction but also needed to capture the exit status. I created this patch for script to perform that task and wanted to send it along in case you were interested in using it. Feel free to ask questions me any questions about the patch. Add a new option, e, that preserves the child processes exit status and uses that as script's exit status. It uses the same format as bash does, so if the process was killed by a signal the exit status will be 128+signal. Signed-off-by: Nate Clark <therealneworld@xxxxxxxxx> -nate
Attachment:
script_preserve_exit.patch
Description: Binary data