L Lê Như Ý New member Jan 6, 2022 #1 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, $0 is set to the name of that file.
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, $0 is set to the name of that file.