From 411f7fc4781f6758a50ce206df62efd809c20186 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sat, 12 Jan 2019 09:30:29 -0800 Subject: 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 --- tests/sed.test | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3