Possible vulnerability in custom shell prompt scripts.
github.com/njhartwell/pw3nagePosted Mar 18, 2017, 9:38 AM UTC
325
Posted Mar 18, 2017, 9:38 AM UTC
If you're using git_info or a framework like oh-my-zsh or prezto with a prompt theme that uses it, you can escape the git_info part with ${(q)git_info[prompt]}: http://zsh.sourceforge.net/Doc/Release/Expansion.html
From my testing vcs_info seems to do the escaping for you.
Mmm seems osx specific
Nothing indicates that it's macOS specific, not sure what you are talking about.
the script itself specifically has a conditional for macos vs other unix OSes. So, no, you're completely wrong.
thanks for understanding
[deleted]