(learning bash)
I was trying to check the bash version so I typed /bin/bash -v
.
That outputted a whole lot of text to the screen (contents of .bashrc, and other files sourced from it).
Could I have screwed up something (like overwriting some config files/setting incorrect environment variables etc.) due to that command?
I also can't find documentation on what the -v
switch is for.
bash -v
you invoked a new bash shell with verbose mode activated, so you will see verbose output for further commands (at the very minimum you'll seeprintf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"
). To end the verbosity, typeexit
command - you will be back in the original non-verbose bash shell (or whatever shell you were in).