Skip to content

gh-122765: make prompt in activate.csh robust against unbalanced quotes and newlines #123751

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

Merged
merged 9 commits into from
Sep 17, 2024

Conversation

JacekDuszenko
Copy link
Contributor

@JacekDuszenko JacekDuszenko commented Sep 5, 2024

@ghost
Copy link

ghost commented Sep 5, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Sep 5, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@picnixz picnixz changed the title gh-122765 make prompt in activate.csh robust against unbalanced quote… gh-122765: make prompt in activate.csh robust against unbalanced quotes and newlines Sep 6, 2024
@JacekDuszenko
Copy link
Contributor Author

@zooba @brettcannon Could you guys please take a look at this PR? I see you have some commit history of editing this file. Thanks in advance!

@brettcannon
Copy link
Member

Any URL available to read the docs on what :q does?

@brettcannon brettcannon self-requested a review September 10, 2024 21:21
@JacekDuszenko
Copy link
Contributor Author

https://linux.die.net/man/1/tcsh - :q makes sure each word is treated literally (wraps them in single quotes) and won’t be treated by the shell as e.g. a command.

@brettcannon brettcannon added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Sep 16, 2024
@brettcannon brettcannon enabled auto-merge (squash) September 16, 2024 21:15
@brettcannon
Copy link
Member

FYI the failures are unrelated. I'm trying to find out when they will be fixed.

@brettcannon
Copy link
Member

@JacekDuszenko your PR is scaring GitHub as any attempt I make at merging main back into it doesn't do anything. Would you mind doing a manual merge w/ main?

@brettcannon brettcannon enabled auto-merge (squash) September 17, 2024 16:51
@brettcannon brettcannon merged commit a15a584 into python:main Sep 17, 2024
34 checks passed
@miss-islington-app
Copy link

Thanks @JacekDuszenko for the PR, and @brettcannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 17, 2024
…d quotes and newlines (pythonGH-123751)

(cherry picked from commit a15a584)

Co-authored-by: Jacek <jacek.duszenko@gmail.com>
@miss-islington-app
Copy link

Sorry, @JacekDuszenko and @brettcannon, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker a15a584bf3f94ea11ab9363548c8872251364000 3.12

@bedevere-app
Copy link

bedevere-app bot commented Sep 17, 2024

GH-124185 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Sep 17, 2024
@brettcannon
Copy link
Member

@JacekDuszenko Thanks for the PR! I'm not going to worry about backporting to 3.11 unless you want to make an explicit PR for it.

savannahostrowski pushed a commit to savannahostrowski/cpython that referenced this pull request Sep 22, 2024
brettcannon added a commit that referenced this pull request Oct 10, 2024
…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 <jacek.duszenko@gmail.com>
Co-authored-by: Brett Cannon <brett@python.org>
@hugovk hugovk removed the needs backport to 3.12 only security fixes label Feb 26, 2025
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

Successfully merging this pull request may close these issues.

4 participants