summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2017-12-11 13:25:58 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2017-12-11 13:25:58 +0000
commit20019b4eaa077856b768b729ac3fbe7c7155f3d4 (patch)
tree1d439e848322b62e202a1dec2e2e97f205ad2cc9 /sys/kern
parentfad941588d9afb4a8539ff43a430f8d4f291d822 (diff)
Fix and change y command in the following ways:
- When 'n' is used as a delimiter escaping 'n' will remain a newline instead of becoming a 'n' character. This is how POSIX specifies how this should work. Other implementations tested also do this wrong. - '[' and maybe other characters are not special during the parsing of the y command and don't need to be matched or treated special in any way. - POSIX specifies that a backslash followed by anything other than the delimiter, 'n', and another backslash, as well as repeating characters in string1 are unspecified. Since the various implementations handle these situations in opposing ways choose to error out on them to prevent people falling into the pitfall of expecting identical behaviour on various implementations. Inspired by the sed.1 patch by kshe59 <at> zoho <dot> eu Feedback and OK millert@ Manpage bits OK jmc@
Diffstat (limited to 'sys/kern')
0 files changed, 0 insertions, 0 deletions