diff options
author | Elliott Hughes <enh@google.com> | 2019-01-12 09:30:29 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-01-12 13:37:30 -0600 |
commit | 411f7fc4781f6758a50ce206df62efd809c20186 (patch) | |
tree | ff7228d472085c09fd4c40808bdab1541ec11bf9 /tests | |
parent | 7d355098320a0cbc54001a07e44cf9f7e7a3636c (diff) | |
download | toybox-411f7fc4781f6758a50ce206df62efd809c20186.tar.gz |
sed: add -z.
Used to construct SELinux policies in the AOSP build.
I left loopfiles_lines with its hard-coded '\n' because although cut(1)
also has a -z option, I can't find any case where it's used in any of
the codebases searchable by me. (And fmt(1), the other user, doesn't
even have the option.) YAGNI.
Bug: http://b/122744241
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/sed.test | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/sed.test b/tests/sed.test index a7d5a6eb..f2ff8fd7 100755 --- a/tests/sed.test +++ b/tests/sed.test @@ -165,4 +165,6 @@ testing "bonus backslashes" \ testing "end b with }" "sed -n '/START/{:a;n;/END/q;p;ba}'" "b\nc\n" \ "" "a\nSTART\nb\nc\nEND\nd" +testing '-z' 'sed -z "s/\n/-/g"' "a-b-c" "" "a\nb\nc" + # -i with $ last line test |