error basename
antonellocaroli opened this issue · comments
antonellocaroli commented
ho uno script shell dove all'interno mi serve recuperare il nome dello script, esempio:
#!/bin/bash
script_name=$(basename "$0")
echo "$script_name"
./test.sh
test.sh
ssc -u test.sh test
./test
3
once the script has been compiled with ssc, it seems that it no longer retrieves basename... how can this be remedied?
Thanks
Paul Lee commented
Have you tried -0 flag?
Read README.md plz.
antonellocaroli commented
perfect, it works.
Thank you