Команда bash не найдена при открытии терминала - PullRequest
0 голосов
/ 24 сентября 2019

при запуске терминала bash запускает несколько версий, заявляя, что команда bash не найдена.У меня также были проблемы с удалением python3 через homebrew.Я запустил brew doctor, и кажется, что есть несколько сценариев, вызывающих ошибку.

-bash:  eval: command not found
-bash: 2.1.3: command not found
-bash: 2.2.3: command not found
-bash: 2.3.7: command not found
-bash: 2.4.0: command not found
-bash: 2.4.1: command not found
-bash: 2.4.2: command not found
-bash: 2.4.3: command not found
-bash: 2.4.4: command not found
-bash: 2.4.5: command not found
-bash: 2.4.6: command not found
-bash: 2.5.0: command not found
-bash: 2.5.1: command not found
-bash: 2.5.2: command not found
-bash: 2.5.3: command not found
-bash: 2.5.4: command not found
-bash: 2.5.5: command not found
-bash: 2.5.6: command not found
-bash: 2.6.6: command not found
-bash: 2.6.7: command not found
-bash: 2.6.8: command not found
-bash: 2.6.9: command not found
-bash: 2.7.0: command not found
-bash: 2.7.1: command not found
-bash: 2.7.2: command not found
-bash: 2.7.3: command not found
-bash: 2.7.4: command not found
-bash: 2.7.5: command not found
-bash: 2.7.6: command not found
-bash: 2.7.7: command not found
-bash: 2.7.8: command not found
-bash: 2.7.9: command not found
-bash: 3.0.1: command not found
-bash: 3.1.0: command not found
-bash: 3.1.1: command not found
-bash: 3.1.2: command not found
-bash: 3.1.3: command not found
-bash: 3.1.4: command not found
-bash: 3.1.5: command not found
-bash: 3.2.0: command not found
-bash: 3.2.1: command not found
-bash: 3.2.2: command not found
-bash: 3.2.3: command not found
-bash: 3.2.4: command not found
-bash: 3.2.5: command not found
-bash: 3.2.6: command not found
-bash: 3.3.0: command not found
-bash: 3.3.1: command not found
-bash: 3.3.2: command not found
-bash: 3.3.3: command not found
-bash: 3.3.4: command not found
-bash: 3.3.5: command not found
-bash: 3.3.6: command not found
-bash: 3.3.7: command not found
-bash: 3.4.0: command not found
-bash: 3.4.1: command not found
-bash: 3.4.2: command not found
-bash: 3.4.3: command not found
-bash: 3.4.4: command not found
-bash: 3.4.5: command not found
-bash: 3.4.6: command not found
-bash: 3.4.7: command not found
-bash: 3.4.8: command not found
-bash: 3.4.9: command not found
-bash: 3.5.0: command not found
-bash: 3.5.1: command not found
-bash: 3.5.2: command not found
-bash: 3.5.3: command not found
-bash: 3.5.4: command not found
-bash: 3.5.5: command not found
-bash: 3.5.6: command not found
-bash: 3.5.7: command not found
-bash: 3.6.0: command not found
-bash: 3.6.1: command not found
-bash: 3.6.2: command not found
-bash: 3.6.3: command not found
-bash: 3.6.4: command not found
-bash: 3.6.5: command not found
-bash: 3.6.6: command not found
-bash: 3.6.7: command not found
-bash: 3.6.8: command not found
-bash: 3.6.9: command not found
-bash: 3.7.0: command not found
-bash: 3.7.1: command not found
-bash: 3.7.2: command not found
-bash: 3.7.3: command not found
-bash: 3.7.4: command not found
-bash: 3.5.4: command not found
-bash: 3.6.0: command not found
-bash: 1.4.0: command not found
-bash: 1.5.0: command not found
-bash: 1.5.1: command not found
-bash: 1.6.0: command not found
-bash: 1.6.1: command not found
-bash: 1.7.0: command not found
-bash: 1.8.0: command not found
-bash: 1.9.0: command not found
-bash: 1.9.1: command not found
-bash: 1.9.2: command not found
-bash: 2.0.0: command not found
-bash: 2.0.1: command not found
-bash: 2.1.0: command not found
-bash: 2.2.0: command not found
-bash: 2.3.0: command not found
-bash: 2.4.0: command not found
-bash: 4.0.0: command not found
-bash: 2.7.4: command not found
-bash: 2.7.5: command not found
-bash: 2.7.6: command not found
-bash: 2.7.7: command not found
-bash: 2.5.0: command not found
-bash: 2.5.1: command not found
-bash: 2.5.2: command not found
-bash: 2.5.3: command not found
-bash: 2.5.4: command not found
-bash: 2.7.0: command not found
-bash: 2.7.1: command not found
-bash: 1.9.3: command not found
-bash: 1.9.4: command not found
-bash: 2.2.2: command not found
-bash: 3.0.0: command not found
-bash: 3.0.4: command not found
-bash: 3.0.5: command not found
-bash: 3.3.0: command not found
-bash: 3.4.2: command not found
-bash: 3.7.0: command not found
-bash: 3.8.3: command not found
-bash: 3.9.1: command not found
-bash: 2.5.1: command not found
-bash: 2.0.1: command not found
-bash: 2.0.1: command not found
-bash: 2.0.2: command not found
-bash: 2.0.2: command not found
-bash: 2.2.1: command not found
-bash: 2.2.1: command not found
-bash: 2.3.1: command not found
-bash: 2.3.1: command not found
-bash: 2.4.0: command not found
-bash: 2.4.0: command not found
-bash: 2.5.0: command not found
-bash: 2.5.0: command not found
-bash: 2.5.1: command not found
-bash: 2.5.1: command not found
-bash: 2.6.0: command not found
-bash: 2.6.0: command not found
-bash: 2.6.1: command not found
-bash: 2.6.1: command not found
-bash: 4.0.0: command not found
-bash: 4.0.0: command not found
-bash: 4.0.1: command not found
-bash: 4.0.1: command not found
-bash: 5.0.0: command not found
-bash: 5.0.0: command not found
-bash: 5.0.1: command not found
-bash: 5.0.1: command not found
-bash: 5.1.1: command not found
-bash: 5.1.1: command not found
-bash: 5.3.1: command not found
-bash: 5.3.1: command not found
-bash: 5.4.1: command not found
-bash: 5.4.1: command not found
-bash: 5.6.0: command not found
-bash: 5.6.0: command not found
-bash: 5.7.0: command not found
-bash: 5.7.0: command not found
-bash: 5.7.1: command not found
-bash: 5.7.1: command not found
-bash: 0.5.1: command not found
-bash: 0.6.0: command not found
-bash: 0.6.1: command not found
-bash: 2.7.2: command not found
-bash: 2.7.3: command not found
-bash: 2.7.4: command not found
-bash: 2.7.5: command not found
-bash: 2.7.6: command not found
-bash: 2.7.7: command not found
-bash: 2.7.8: command not found
-bash: 2.7.9: command not found
-bash: 3.2.2: command not found
-bash: 3.2.5: command not found
-bash: 3.3.5: command not found
-bash: 3.3.7: command not found
-bash: 3.4.1: command not found
-bash: 3.4.2: command not found
-bash: 3.4.7: command not found
-bash: 3.5.4: command not found
-bash: 2.1.3: command not found
-bash: 2.2.3: command not found
-bash: 2.3.7: command not found
-bash: 2.4.0: command not found
-bash: 2.4.1: command not found
-bash: 2.4.2: command not found
-bash: 2.4.3: command not found
-bash: 2.4.4: command not found
-bash: 2.4.5: command not found
-bash: 2.4.6: command not found
-bash: 2.5.0: command not found
-bash: 2.5.1: command not found
-bash: 2.5.2: command not found
-bash: 2.5.3: command not found
-bash: 2.5.4: command not found
-bash: 2.5.5: command not found
-bash: 2.5.6: command not found
-bash: 2.6.6: command not found
-bash: 2.6.7: command not found
-bash: 2.6.8: command not found
-bash: 2.6.9: command not found
-bash: 2.7.0: command not found
-bash: 2.7.1: command not found
-bash: 2.7.2: command not found
-bash: 2.7.3: command not found
-bash: 2.7.4: command not found
-bash: 2.7.5: command not found
-bash: 2.7.6: command not found
-bash: 2.7.7: command not found
-bash: 2.7.8: command not found
-bash: 2.7.9: command not found
-bash: 3.0.1: command not found
-bash: 3.1.0: command not found
-bash: 3.1.1: command not found
-bash: 3.1.2: command not found
-bash: 3.1.3: command not found
-bash: 3.1.4: command not found
-bash: 3.1.5: command not found
-bash: 3.2.0: command not found
-bash: 3.2.1: command not found
-bash: 3.2.2: command not found
-bash: 3.2.3: command not found
-bash: 3.2.4: command not found
-bash: 3.2.5: command not found
-bash: 3.2.6: command not found
-bash: 3.3.0: command not found
-bash: 3.3.1: command not found
-bash: 3.3.2: command not found
-bash: 3.3.3: command not found
-bash: 3.3.4: command not found
-bash: 3.3.5: command not found
-bash: 3.3.6: command not found
-bash: 3.3.7: command not found
-bash: 3.4.0: command not found
-bash: 3.4.1: command not found
-bash: 3.4.2: command not found
-bash: 3.4.3: command not found
-bash: 3.4.4: command not found
-bash: 3.4.5: command not found
-bash: 3.4.6: command not found
-bash: 3.4.7: command not found
-bash: 3.4.8: command not found
-bash: 3.4.9: command not found
-bash: 3.5.0: command not found
-bash: 3.5.1: command not found
-bash: 3.5.2: command not found
-bash: 3.5.3: command not found
-bash: 3.5.4: command not found
-bash: 3.5.5: command not found
-bash: 3.5.6: command not found
-bash: 3.5.7: command not found
-bash: 3.6.0: command not found
-bash: 3.6.1: command not found
-bash: 3.6.2: command not found
-bash: 3.6.3: command not found
-bash: 3.6.4: command not found
-bash: 3.6.5: command not found
-bash: 3.6.6: command not found
-bash: 3.6.7: command not found
-bash: 3.6.8: command not found
-bash: 3.6.9: command not found
-bash: 3.7.0: command not found
-bash: 3.7.1: command not found
-bash: 3.7.2: command not found
-bash: 3.7.3: command not found
-bash: 3.7.4: command not found
-bash: 3.5.4: command not found
-bash: 3.6.0: command not found
-bash: 1.4.0: command not found
-bash: 1.5.0: command not found
-bash: 1.5.1: command not found
-bash: 1.6.0: command not found
-bash: 1.6.1: command not found
-bash: 1.7.0: command not found
-bash: 1.8.0: command not found
-bash: 1.9.0: command not found
-bash: 1.9.1: command not found
-bash: 1.9.2: command not found
-bash: 2.0.0: command not found
-bash: 2.0.1: command not found
-bash: 2.1.0: command not found
-bash: 2.2.0: command not found
-bash: 2.3.0: command not found
-bash: 2.4.0: command not found
-bash: 4.0.0: command not found
-bash: 2.7.4: command not found
-bash: 2.7.5: command not found
-bash: 2.7.6: command not found
-bash: 2.7.7: command not found
-bash: 2.5.0: command not found
-bash: 2.5.1: command not found
-bash: 2.5.2: command not found
-bash: 2.5.3: command not found
-bash: 2.5.4: command not found
-bash: 2.7.0: command not found
-bash: 2.7.1: command not found
-bash: 1.9.3: command not found
-bash: 1.9.4: command not found
-bash: 2.2.2: command not found
-bash: 3.0.0: command not found
-bash: 3.0.4: command not found
-bash: 3.0.5: command not found
-bash: 3.3.0: command not found
-bash: 3.4.2: command not found
-bash: 3.7.0: command not found
-bash: 3.8.3: command not found
-bash: 3.9.1: command not found
-bash: 2.5.1: command not found
-bash: 2.0.1: command not found
-bash: 2.0.1: command not found
-bash: 2.0.2: command not found
-bash: 2.0.2: command not found
-bash: 2.2.1: command not found
-bash: 2.2.1: command not found
-bash: 2.3.1: command not found
-bash: 2.3.1: command not found
-bash: 2.4.0: command not found
-bash: 2.4.0: command not found
-bash: 2.5.0: command not found
-bash: 2.5.0: command not found
-bash: 2.5.1: command not found
-bash: 2.5.1: command not found
-bash: 2.6.0: command not found
-bash: 2.6.0: command not found
-bash: 2.6.1: command not found
-bash: 2.6.1: command not found
-bash: 4.0.0: command not found
-bash: 4.0.0: command not found
-bash: 4.0.1: command not found
-bash: 4.0.1: command not found
-bash: 5.0.0: command not found
-bash: 5.0.0: command not found
-bash: 5.0.1: command not found
-bash: 5.0.1: command not found
-bash: 5.1.1: command not found
-bash: 5.1.1: command not found
-bash: 5.3.1: command not found
-bash: 5.3.1: command not found
-bash: 5.4.1: command not found
-bash: 5.4.1: command not found
-bash: 5.6.0: command not found
-bash: 5.6.0: command not found
-bash: 5.7.0: command not found
-bash: 5.7.0: command not found
-bash: 5.7.1: command not found
-bash: 5.7.1: command not found
-bash: 0.5.1: command not found
-bash: 0.6.0: command not found
-bash: 0.6.1: command not found
-bash: 2.7.2: command not found
-bash: 2.7.3: command not found
-bash: 2.7.4: command not found
-bash: 2.7.5: command not found
-bash: 2.7.6: command not found
-bash: 2.7.7: command not found
-bash: 2.7.8: command not found
-bash: 2.7.9: command not found
-bash: 3.2.2: command not found
-bash: 3.2.5: command not found
-bash: 3.3.5: command not found
-bash: 3.3.7: command not found
-bash: 3.4.1: command not found
-bash: 3.4.2: command not found
-bash: 3.4.7: command not found
-bash: 3.5.4: command not found
Python: can't open file '3.7.3': [Errno 2] No such file or directory

Вывод brew doctor:

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.
```

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:

  /Users/elduro/.pyenv/shims/python3.7-config
  /Users/elduro/.pyenv/shims/python3.7m-config
  /Users/elduro/.pyenv/shims/python-config
  /Users/elduro/.pyenv/shims/python3-config

Вывод '.bash_profile' '' '

if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
eval "$(pyenv init -)"
export PATH="/Users/elduro/.pyenv/shims:${PATH}"
export PYENV_SHELL=bash
source '/usr/local/Cellar/pyenv/1.2.13_1/libexec/../completions/pyenv.bash'
command pyenv rehash 2>/dev/null
pyenv() {
local command
command="${1:-}"
if [ "$#" -gt 0 ]; then
shift
fi


case "$command" in
rehash|shell)
eval "$(pyenv "sh-$command" "$@")";;
*)
command pyenv "$command" "$@";;
esac
}
export PATH="/Users/elduro/.pyenv/shims:${PATH}"
export PYENV_SHELL=bash
source '/usr/local/Cellar/pyenv/1.2.13_1/libexec/../completion/pyenv.bash'
command pyenv rehash 2>/dev/null
pyenv() {
local command
command="${1:-}"
if [ "$#" -gt 0 ]; then
shift
fi

case "$command" in
rehash|shell)
eval "$(pyenv "sh-$command" "$@")";;
*)
command pyenv "$command" "$@";;
esac
}
export PATH="/Users/elduro/.pyenv/shims:${PATH}"
export PYENV_SHELL=bash
source '/usr/local/Cellar/pyenv/1.2.13_1/libexec/../completions/pyenv.bash'
command pyenv rehash 2>/dev/null
pyenv() {
local command
command="${1:-}"
if [ "$#" -gt 0 ]; then
shift
fi

case "$command" in
rehash|shell)
eval "$(pyenv "sh-$command" "$@")";;
*)
command pyenv "$command" "$@";;
esac
}
export PATH="/Users/elduro/.pyenv/shims:${PATH}"
export PYENV_SHELL=bash
source '/usr/local/Cellar/pyenv/1.2.13_1/libexec/../completions/pyenv.bash'
command pyenv rehash 2>/dev/null
pyenv() {
local command
command="${1:-}"
if [ "$#" -gt 0 ]; then
shift
fi

case "$command" in
rehash|shell)
eval "$(pyenv "sh-$command" "$@")";;
*)
command pyenv "$command" "$@";;
esac
}
2.1.3
#all versions untill
3.5.4
Python 3.7.3 

Также упоминается GNU nano 2.0.6,Файл .bash_profile изменен

...