From 09e0c7e5442d3c537dcdb89a95aabf462caf332e Mon Sep 17 00:00:00 2001 From: Milan Hauth Date: Tue, 6 Feb 2024 13:06:49 +0100 Subject: [PATCH] e9compile: fix vars --- e9compile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e9compile.sh b/e9compile.sh index bfdc11a..368c3eb 100755 --- a/e9compile.sh +++ b/e9compile.sh @@ -51,7 +51,7 @@ case "$1" in ;; *) echo >&2 - echo "${RED}error${OFF}: file $1 must have a .c/.cpp/.s extension" >&2 + echo "${RED}error${OFF}: file ${1@Q} must have a .c/.cpp/.s extension" >&2 echo >&2 exit 1 ;; @@ -68,7 +68,7 @@ CFLAGS=( -mstringop-strategy=loop -fno-tree-vectorize -fomit-frame-pointer -I examples/ ) -COMPILE=("$CC" "${CFLAGS[@]}" -c -Wall "$@" "$DIRNAME/$BASENAME.$EXTENSION") +COMPILE=("$CC" "${CFLAGS[@]}" -c -Wall "$@" "$1") echo "${COMPILE[@]}" if ! "${COMPILE[@]}"