What is $0 in bash script?

What is $0 in bash script?
Answer
$0 expands to the
name of the shell or shell script. This is set at shell initialization. If bash is invoked with a file of commands, $0 is set to the name of that file.
 

Tìm kiếm

Back
Top