On 01/16/201
Here's what I want to know:
1). What sed (vendor, version) does Mac OS X/Darwin use? *BSD or just
really old GNU?
BSD.
2). Is it "\r" or "\\r" that is really undefined? I was never sure if
"\\" was supposed to be undefined in POSIX (e.g. gnused --posix) or
not.
Hmmm, latest sed.info (4.2.1) says this:
Note that the only C-like backslash sequences that you can
portably assume to be interpreted are `\n' and `\\'
Somebody should probably ask Paolo Bonzini. I'll cc him. :-)
"\r" _is_ undefined, it can be "r" or "CR". "\\r" is not undefined,
since it is parsed as "\\" followed by "r".
Even "\n" is undefined on the RHS of the s command.
Paolo