From dc9450f64aa7ba902798969929e3c0c1c5617bf3 Mon Sep 17 00:00:00 2001 From: sofia Date: Tue, 15 Jul 2025 19:35:46 +0300 Subject: [PATCH] Fix libtest.sh --- libtest.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libtest.sh b/libtest.sh index a0c52d1..ff8adbc 100755 --- a/libtest.sh +++ b/libtest.sh @@ -12,9 +12,10 @@ # -o main /usr/lib/crt1.o hello.o -lc && \ # ./main ; echo "Return value: ""$?" -$BINARY="$($1 | cut -d'.' -f1)"".out" +BINARY="$(echo $1 | cut -d'.' -f1)"".out" + +make clean SRC=$1 && make SRC=$1 && echo "" -make clean SRC=$1 && make SRC=$1 && echo "" && \ $BINARY ; echo "Return value: ""$?" ## Command from: clang -v hello.o -o test