commit d94c6547755e253374bb6da489b5c01f69680dbc
parent ffc56872a365f518ba8899157a2738a5462df500
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Sun, 15 Feb 2026 11:07:41 +0100
posix: Quote parameters passed down in scc
The scc wrapper has to preserve the parameters in the best
possible way to avoid spliting words in the wrong places
when they are passed down to the specific tools.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/cmd/scc-cc/posix/scc.sh b/src/cmd/scc-cc/posix/scc.sh
@@ -16,9 +16,9 @@ case $1 in
cc|cpp|as|ar|addr2line|ld|make|nm|objcopy|dump|size|strip)
tool=$1
shift
- exec $SCCPREFIX/bin/scc-$tool $@
+ exec $SCCPREFIX/bin/scc-$tool "$@"
;;
*)
- exec $SCCPREFIX/bin/scc-cc $@
+ exec $SCCPREFIX/bin/scc-cc "$@"
;;
esac