$SHELL
doesn’t tell you which shell is running, it tells you what the top-most shell in your current stack of shells is (probably your login shell, as defined in your user information e.g. in /etc/passwd
, or in WSL, the default interactive shell). — Stephen Kitt 9 mins ago