Quoth Bob Miller, on Thu, 5 May 2005 18:11:06 -0700: > No, sed is precise with regard to newlines. (-: I was wondering if
The man page isn't very. It doesn't mention "$" wrt regex's, just "\n": "REGULAR EXPRESSIONS POSIX.2 BREs should be supported, but they aren't completely because of performance problems. The \n sequence in a regular expression matches the newline character, and similarly for \a, \t, and other sequences." All I could find on POSIX.2 BREs defines "$" in terms of "the end of a line": http://docsrv.sco.com:507/en/man/html.M/regexp.M.html http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html#tag_09_03 _08 I can only surmise sed is thus free to treat "^M" as part of the RE or as part of the "end of a line", and opts for the former. Cheers, --Jason V. C. -- Revolution from Below! GPL the Constitution! _______________________________________________ EUGLUG mailing list [email protected] http://www.euglug.org/mailman/listinfo/euglug
