A few times I mistook
bash -v or
bash --v to represent
bash --version which they do not, as of Bash 4.3.48(1).
bash -v is equivalent to
bash --verbose; although it returns a large output (allegedly some
bashrc files, maybe more); I think it just starts a child session.
bash --v outputs much less, mainly
bash: --v: invalid option.
I planned to ask if any of the two could be problematic in an all-default bash but I see no evidence for that and assumes Bash newbies shouldn't be stressed by these.
I did misunderstood from
man bash, what's the meaning of
bash -v varname.
What is the meaning of starting a new bash session with a seemingly undefined variable, or it means to start it with also printing the value of an exported variable
Notes for newcomers:
- An exported variable is any variable inherited from one shell session to another (say from session 0 to session 1).