3 ms·
For bash, the easiest way would be to just type help', which will report the currently executing shell's version number (e.g. 'GNU bash, version 5.0.18(1)-relea
by joosters 6y ago
For bash, the easiest way would be to just type help', which will report the currently executing shell's version number (e.g. 'GNU bash, version 5.0.18(1)-release (x86_64-apple-darwin19.5.0)'
I'm not familiar with zsh, perhaps it also has some built-in commands that would report the release version?
- codetrotter 6y ago% help zsh: command not found: help Well, it kinda works. Just not in the way you might have hoped :P But the output lets you know that you are running zsh. And to find out the version: % echo $ZSH_VERSION 5.7.1 (Assuming no-one has been silly and overridden the value of said environment variable in their zshenv file or something. But if we assumed that to be likely then we should also assume that someone using bash had aliased 'help' to something else too, so I think it is fair to assume that no-one had done that.)
- sk0g 6y agoFish opens up file:///usr/share/doc/fish/index.html in Firefox with the following console output: ╰─>$ help (firefox:42227): Gtk-WARNING **: 11:46:58.100: Locale not supported by C library. Using the fallback 'C' locale
- OrderlyTiamat 6y agoThat looks like output from Firefox. The page itself should be the fish help page.
- sk0g 6y agoThat's right, but the output of the help command doesn't provide any indication as to what shell I'm running still.