Search code examples
shellzsh

Check ZSH version with zsh -v: did I made a mess?


I thought I could check my ZSH version used in macOS with zsh -v. Instead, I got a very long output which contained some shell code and I'm not sure if I made a mess with that command.


Solution

  •  % zsh --help | grep version
      --version  show zsh version number, then exit
    
     % zsh --help | grep -- '-v '
      -v    equivalent to --verbose
    

    So you just run another zsh process, but in a verbose mode.