1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/usr.bin/sed
martijn 0a3faa2e7b 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@
2017-12-11 13:25:57 +00:00
..
TEST
USD.doc
compile.c Fix and change y command in the following ways: 2017-12-11 13:25:57 +00:00
defs.h Split error() into error() and warning() so error() can be marked __dead to 2017-01-20 10:26:16 +00:00
extern.h Apply stricter pledge rules if possible. These are based on the usage of 2017-08-01 18:05:53 +00:00
main.c Apply stricter pledge rules if possible. These are based on the usage of 2017-08-01 18:05:53 +00:00
Makefile
misc.c Split error() into error() and warning() so error() can be marked __dead to 2017-01-20 10:26:16 +00:00
POSIX
process.c Remove unused-with-dead-store variable oldpsanl. 2017-02-22 14:09:09 +00:00
sed.1 Fix and change y command in the following ways: 2017-12-11 13:25:57 +00:00