Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Removing setecho(False) for all shells #1673

Merged
merged 2 commits into from
Dec 24, 2019

Conversation

jmaroeder
Copy link
Contributor

@jmaroeder jmaroeder commented Dec 4, 2019

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

Intended to fix #1672. It appears to me that the only thing that the setecho(False) line does is prevent a double echo of the /bin/activate command in zsh.

Example outputs

Example outputs from various shells. Note that the only things actually typed here are the initial poetry shell and the final exit:

fish

$ poetry shell
Spawning shell within <REDACTED>/.venv
$ source <REDACTED>/.venv/bin/activate.fish
$ exit

bash

bash-3.2$ poetry shell
Spawning shell within <REDACTED>/.venv

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
bash-3.2$ . <REDACTED>/.venv/bin/activate
(.venv) bash-3.2$ exit

zsh

% poetry shell
Spawning shell within <REDACTED>/.venv
. <REDACTED>/.venv/bin/activate
% . <REDACTED>/.venv/bin/activate
(.venv) % exit

@jmaroeder
Copy link
Contributor Author

Note that the above tests were performed in MacOS.

@itsthejoker
Copy link

I can confirm this fix works for me and makes poetry usable again on fish shell. @sdispater please take a look at this PR -- this fixes #1672 and #1664. Cheers!

@finswimmer finswimmer added the kind/bug Something isn't working as expected label Dec 23, 2019
@sdispater sdispater merged commit db6db8f into python-poetry:master Dec 24, 2019
@sdispater
Copy link
Member

Thanks!

shenek pushed a commit to shenek/poetry that referenced this pull request Dec 31, 2019
* Removing setecho(False) for all shells

* Only setecho(False) for zsh
@jmaroeder jmaroeder deleted the fix/no-echo-in-shell branch January 12, 2020 00:54
Copy link

github-actions bot commented Mar 1, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

poetry shell with fish does not echo in python REPL
4 participants