What does $0 represent?

What does $0 represent?
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