explainshell
explainshell copied to clipboard
$?
Should probably understand that, right?
It doesn't understand any variables on their own. Using a variable in a command makes the variable be explained with some generic text relating to the command, which doesn't change with any specific variables like $$, $0, $1, or $PATH; this problem is not specific to $?.