shithub: scc

Download patch

ref: 61cec444584284bf3e9ca8aa8fbcbd442cbff56c
parent: 50502b531fdc5fdfa39c5fe55ebdb69c942075b8
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Oct 6 17:44:34 EDT 2019

[tests/scc] Fix string handling

printf is not mandated to interpret escape sequences when it prints
%s formats.

--- a/tests/scc/execute/chktest.sh
+++ b/tests/scc/execute/chktest.sh
@@ -15,10 +15,10 @@
 while read i state
 do
 	echo $i >>test.log
-	state=${state:-"\t"}
+	state=${state:-""}
 	rm -f a.out
 
 	(scc -Isysinclude $CFLAGS "$i" && ./a.out) 2>>test.log &&
 		printf '[PASS]' || printf '[FAIL]'
-	printf '%s\t%s\n' "$state" "$i"
+	printf '\t%s\t%s\n' $i $state
 done < $file