brew update up to datebrew doctor cleanbrew gist-logs zsh gistEarlier today, the zsh formula was updated to 5.4.2. (commit, bottles)
After a brew update and brew upgrade today, my zsh was exiting immediately on startup. I tracked the problem down to a line in oh-my-zsh's gitfast plugin.
Running the command above manually with zsh -x, I get the following (gist):
$ printf -v __git_printf_supports_v -- '%s'
<snip>
+zsh:2> printf -v __git_printf_supports_v -- %s
dyld: lazy symbol binding failed: Symbol not found: _open_memstream
Referenced from: /usr/local/bin/zsh
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _open_memstream
Referenced from: /usr/local/bin/zsh
Expected in: /usr/lib/libSystem.B.dylib
[1] 63774 abort zsh -x
I'm on the latest Command Line Tools for Xcode (9.0) and Xcode (9.0). This occurs whether zsh is poured or built from source.
Steps to reproduce:
brew install zsh (version 5.4.2)zshprintf -v -- '' or printf -v bupkis -- '%s'If I can provide any additional info, please let me know.
Just want to echo that I've seen identical behavior, but in my case it was caused by sourceing the git-prompt.sh bash completion script (which also contains a number of calls to printf -v ...).
This should be fixed by https://github.com/Homebrew/homebrew-core/pull/18426.
Thanks very much for the quick fix! Really appreciate it.
@justinkim you're welcome!
Most helpful comment
This should be fixed by https://github.com/Homebrew/homebrew-core/pull/18426.