git-info bug
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.04 (but issue also exists when I launch last 2.x version
- OS version: 10.10.5[com.googlecode.iterm2.plist]
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)(/uploads/2cd464c547df37db08466c5d0716ec56/com.googlecode.iterm2.plist)
- Attach a debug log, if possible. Instructions at https://iterm2.com/debuglogdebuglog.txt
- Are you reporting a performance issue or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample
Detailed steps to reproduce the problem:
- Install zsh
- Install prezto zsh configuration management
- Switch to prompt
sorin
orgarrett
, because they use thegit-info
tool for git status information instead of vcsinfo. - Change to a directory with a .git subfolder (i.e. a git tracked directory)
What happened: Every zsh command that usually ends with re-checking the git status creates this output:
git-info:165: bad math expression: operator expected at `0'
git-info:173: bad math expression: operator expected at `0'
What should have happened: git-info should work.
Note that launching the older iterm 2.x (latest version) also produces this error.
Why do I report this to iterm2/3 ? Because when I open OSX Terminal.app this error does not appear, even so it uses my default login shell (homebrew zsh) and garrett
prompt.
Hypothesis: I found old error issues on prezto's github account (see here: https://github.com/sorin-ionescu/prezto/issues/566) that were caused by (quote::) " virtualenv postactivate script which modified IFS and didn't unset it when finished." I have absolutely no clue what this could mean.
Also, I'm pretty sure that I did not have this annoying error appear, maybe with iTerm3.0.0 to 3.0.3? But why does it then appear also with older iTerm 2.x? Did git maybe change something in their code related to this? (I have git 2.9.2 via homebrew).