On Tue, Mar 22, 2011 at 06:10:21AM +0100, Bret Lambert wrote: | On Mon, Mar 21, 2011 at 9:45 PM, William Boshuck <bos...@math.mcgill.ca> wrote: | > On Mon, Mar 21, 2011 at 01:18:41PM -0500, Chris Bennett wrote: | > | >> OpenBSD's form of sed requires you to output to a new file and | >> mv that back to original. | > | > .. or one could use ed, or perl, to change a file in place. | | What happens if ed, or perl, corrupts a system file in place?
The same thing that happens when sed creates a corrupt temporary file that is then used to replace its input: brokenness. Paul 'WEiRD' de Weerd -- >++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+ +++++++++++>-]<.>++[<------------>-]<+.--------------.[-] http://www.weirdnet.nl/