When I type echo $0
I see -
I expect to see bash or some filename, what does it mean if I just get a "-"
?
A hyphen in front of $0
means that this program is a login shell.
note: $0
does not always contain accurate path to the running executable as there is a way to override it when calling execve(2)
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With