scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 042d494b739bd603589b7a2ff80010610834d7c5
parent ba546feb8726d388821569a72da2213d17b2430d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat,  5 Sep 2020 13:33:31 +0200

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.

Diffstat:
Msrc/libc/rules.mk | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libc/rules.mk b/src/libc/rules.mk @@ -11,7 +11,7 @@ LIBCLST= $(PROJECTDIR)/src/libc/libc.lst MKLST = \ echo $? |\ - sed 's/ /\n/g' |\ + tr ' ' '\n' |\ sed '/^$$/d' |\ sed 's@^@$(PWD)/@' >> $(LIBCLST)