-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
venv activate.csh fails when user prompt contains newline #122765
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
Comments
… quotes and newlines
sent a PR with a fix however there is a similar issue with It's fixable by extracting the concatenated |
…d quotes and newlines (pythonGH-123751) (cherry picked from commit a15a584) Co-authored-by: Jacek <[email protected]>
…d quotes and newlines (pythonGH-123751)
…ed quotes and newlines (GH-123751) (GH-124185) gh-122765: make prompt in activate.csh robust against unbalanced quotes and newlines (GH-123751) (cherry picked from commit a15a584) Co-authored-by: Jacek <[email protected]> Co-authored-by: Brett Cannon <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
activate.csh uses "$prompt" in quotes like that, which fails when the user prompt contains a newline (error: unbalanced quotes).
Using $prompt:q or "$prompt:q" solves this with no harm, at least in tcsh (not sure about vanilla csh), at least for activate. (Deactivate may have similar issue.)
CPython versions tested on:
3.11
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: