- edited description
BSD sed(1) y command + backslash portability
Issue #130
resolved
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)
-
reporter -
reporter try following:
echo '.\\home' | sed 'y|\\|/|'
-
reporter - changed status to resolved
fixed <<cset:64aac0c>>
-
reporter BUGFIX: Issue
#130- stupid regression introduced by <<cset:ca5fac1>>→ <<cset 3646dd29f146>>
- Log in to comment