When I type brew, I get the output:
zsh: killed brew
Writing out the whole path still gives the same output, so it doesn't seem like a path problem.
Furthermore, running /bin/bash gives the output:
zsh: killed /bin/bash
I changed the names of .zshrc and .zprofile, yet the problem still persisted.
This also doesn't work on programs like pyenv. I also reinstalled xcode-select, yet the problem still persists. Furthermore, using the bash shell simply gives "process completed" (with deleted .bashrc and .bash_profile files).
I have both iterm2 and terminal, and running "/bin/zsh -x" on my mac terminal outputs stuff about iterm2, so I'm not sure what's happening there.
zshare you using, the default one or one you installed yourself? If you create a new user account on your Mac and try there, is the problem the same? – nohillside May 13 '22 at 07:39/bin/bashfrom/bin/zshalso ends up inkilledthen the problem doesn't directly seem related to Homebrew. Has it every worked correctly, can you remember any relevant change (software installation, crash) since then? – nohillside May 13 '22 at 09:30/bin/bashproblem? – Jeb Song May 14 '22 at 06:38/bn/bashleads to akillederror immediately? – nohillside May 17 '22 at 05:03dstruss– Jeb Song May 18 '22 at 03:27