John McKown wrote:
Yes, I know how to get it. But I'm curious and would like your feedback.
Assuming that my script is BASH specific, is there any reason why I should
not use the command:
SCRIPT_NAME=${0##*/}
instead of
SCRIPT_NAME=$(basename $0)
?
I ask because I feel that the first
Yes, I know how to get it. But I'm curious and would like your feedback.
Assuming that my script is BASH specific, is there any reason why I should
not use the command:
SCRIPT_NAME=${0##*/}
instead of
SCRIPT_NAME=$(basename $0)
?
I ask because I feel that the first example, though not