summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormartijn <martijn@openbsd.org>2017-12-11 13:25:57 +0000
committermartijn <martijn@openbsd.org>2017-12-11 13:25:57 +0000
commit0a3faa2e7b5822ce788c345a7c75cd9b9b9d28e4 (patch)
treec70a1c3a68e9baf72cc672dcdf5ec9d4f01775fd /sys
parentsscanf(3) is now used to parse templates that contain format specifiers (diff)
downloadwireguard-openbsd-0a3faa2e7b5822ce788c345a7c75cd9b9b9d28e4.tar.xz
wireguard-openbsd-0a3faa2e7b5822ce788c345a7c75cd9b9b9d28e4.zip
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')
0 files changed, 0 insertions, 0 deletions