[Toybox] [PATCH] sed: add -z.

enh enh at google.com
Sat Jan 12 09:36:38 PST 2019


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
---
 lib/lib.c        |  6 +++---
 lib/lib.h        |  2 +-
 tests/sed.test   |  2 ++
 toys/posix/sed.c | 25 +++++++++++++++----------
 4 files changed, 21 insertions(+), 14 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-sed-add-z.patch
Type: text/x-patch
Size: 6308 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190112/8948b8a3/attachment.bin>


More information about the Toybox mailing list