Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

The way to pin/unpin xonsh executable to prevent/allow xonsh shadowing #3

Open
anki-code opened this issue Jul 17, 2024 · 1 comment

Comments

@anki-code
Copy link
Owner

anki-code commented Jul 17, 2024

I noticed:

xonsh # xonsh-installed xonsh
which xonsh
# .../xonsh-env/xbin/xonsh

xmamba activate myenv  # has xonsh
pip install xonsh
which xonsh
# .../myenv/.../bin/xonsh
# Because:
$PATH
# ['.../myenv/...', '.../xonsh-env/...']

echo '#!/usr/bin/env xonsh' > script.xsh
./script.xsh  # .../myenv/.../bin/xonsh

We need to have a way to pin the xonsh executable.

@anki-code
Copy link
Owner Author

xonsh/xonsh#5603

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant