Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch: fix external ed invocation (#904)
* patch: fix external ed invocation * This version of patch first attempts to process an ed diff by running an external ed command, then falls back to processing the ed commands directly * I noticed the external ed code was always failing but I didn't debug it until now * Problem1: SIGCHLD happens normally when ed exits but it was being treated as an error (removing signal handlers fixes it) * Problem2: write command sent to ed was not terminated by a newline, so ed would never run the command * Problem3: after writing to o_file, the offset of filehandle $out was at byte 26, so the test line comparison wasn't correct * With this patch I can process a simple ed diff on Linux without the code reaching PLAN_J * revert pipe argument list conversion to scalar
- Loading branch information