Code:
# freebsd-version
12.3-RELEASE-p5
# pkg info bash
bash-5.1.16
Name : bash
Version : 5.1.16
# bash --version
bash: --: invalid option
Usage: bash [GNU long option] [option] ...
bash [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--pretty-print
--rcfile
--restricted
--verbose
--version
Shell options:
-ilrsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option
The default usage states that
--version
is a valid option. But, I cannot seem to get it to work. Am I missing something?