3 ms·
Why does patch call ed? What did anyone ever actually use this for?
by eridius 9y ago
Why does patch call ed? What did anyone ever actually use this for?
- schoen 9y agoEdit: I'm replacing my somewhat vague reply with a more correct answer: https://en.wikipedia.org/wiki/Diff_utility#Edit_script https://en.wikipedia.org/wiki/Diff_utility#Edit_script
- LukeShu 9y agoThe `patch` program is expected to be able to apply any patchfile syntaxes created by `diff`. Once upon a time, the default behavior of diff was to spit out an `ed` script (nowadays, it's behind the `-e` flag). So, to apply that syntax of patchfile, it invokes `ed`.
- zokier 9y agoUnix principle of small tools chained together.