BSD sed(1) y command + backslash portability

Issue #130 resolved
Takehiko NOZAKI repo owner created an issue

the spec says:

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html

If a <backslash> character is immediately followed by a <backslash> character
in string1 or string2, the two <backslash> characters shall be counted as a
single literal <backslash> character.

FreeBSD + OpenBSD is already fixed. https://svnweb.freebsd.org/base?view=revision&revision=197361 http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/sed/compile.c#rev1.33

TNF HEAD is ok(with uncertain merge commit...) http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/sed/compile.c#rev1.41

Comments (4)

  1. Log in to comment