On 8 April 2011 17:23, John Cowan <[email protected]> wrote: >> Searching for NUL characters using /^@/ matches any line, whether or >> not it contains NULs. >> and you can't all eliminate NUL characters with 1,$s/^@//g (that's a >> NUL there, control-V control-@. There doesn't seem to be a syntax for >> control characters other than \n and its friend) > > Ed is meant to edit text files, not arbitrary binary files, and NUL > should not appear in text files, as it has no textual meaning.
I agree. Drop binary file support from GNU ed? Would that upset anyone? However BSD ed, which I presume is derived from the original sources, if you $ ed /bun/ls w ls q $ you get an identical file, wthout aby newline-adding nonsense :) M _______________________________________________ bug-ed mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-ed
