This question already has an answer here:
In school I learned that "$0" would be the name of the script in bash, but when I try to print it, it actually prints -bash instead of the scriptname.
Is there something I missed, or is there another command to get the name of the script?
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
© 2016 Powered by mzan.com design MATCHINFO