pyenv / pyenv-virtualenv

a pyenv plugin to manage virtualenv (a.k.a. python-virtualenv)
MIT License
6.18k stars 399 forks source link

virtualenv-init break mc (Midnight Commander) subshell #480

Open fizista opened 1 month ago

fizista commented 1 month ago

When this plugin is running, the midnight commander shell does not work when you press CTRL+O.

Steps needed to repeat the problem:

  1. Create file .bash_test_rc

    export PYENV_ROOT="$HOME/.pyenv" command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)"

  2. Run bash --rcfile ~/.bash_test_rc --verbose

  3. Run mc

  4. Press CTRL+O

  5. The bash shell should appear, but unfortunately it does not appear.

pyenv-virtualenv-bash-debug.txt

Prerequisite

Description