Re: script name w/o path.

2009-08-08 Thread John Summerfield
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

script name w/o path.

2009-08-07 Thread John McKown
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