Fix libtest.sh

This commit is contained in:
Sofia 2025-07-15 19:35:46 +03:00
parent 19c883ea33
commit dc9450f64a

View File

@ -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