What is $0 shell?

Lò Ngọc

New member
What is $0 shell?
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 (see Section 3.8 [Shell Scripts], page 39), $0 is set to the name of that file.
 

Tìm kiếm

Back
Top