Closed Rikorose closed 4 years ago
Noticed this myself. Some additional information: it seems only certain terminal emulators return /bin/bash
for $0
. So far I've noticed Gnome Terminal, Urxvt, and xTerm return bash
while Terminator and Alacritty return /bin/bash
. I'm using Fedora 30.
Problem under fedora:
results in
A possible solution for bash would be to modify in
.bashrc
:Another option would be to correctly parse the path of
$0
in main.By the way, the error message would be more helpful (i.e. the use does not need to look at the src), if it includes the current value of $SILVER_SHELL and the supported values.