ref: f8c319364a27e91e36a5142ad195f5c14192ccdc
parent: db97bc62e54fed5b11a0859356153b5086cff131
author: Hiltjo Posthuma <hiltjo@codemadness.org>
date: Sat Sep 5 09:33:31 EDT 2020
libc: Use tr instead of sed for removing newlines There is no newline in a single-line pattern space, so trying to act on a newline there isn't portable.
--- a/src/libc/rules.mk
+++ b/src/libc/rules.mk
@@ -11,7 +11,7 @@
MKLST = \
echo $? |\
- sed 's/ /\n/g' |\
+ tr ' ' '\n' |\
sed '/^$$/d' |\
sed 's@^@$(PWD)/@' >> $(LIBCLST)