-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Replace backquote with command substitution #13941
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
Conversation
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for your contribution, we look forward to reviewing it! |
I think that |
This requires an edit to Discovering that was made much more difficult because #13579 hasn't been merged yet. |
Any chance of a review on this one @gpshead and/or lifting the bedevere restrictions? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are still going to be shell scripts using backquotes that people are wrangling out there, but overall agreed, lets use the more common modern shell syntax in the example. bonus, as you noticed, this is easier in ReST as we don't need susp-ignored entry.
GH-14793 is a backport of this pull request to the 3.8 branch. |
…pythonGH-13941) Replace backquotes with POSIXy command substitution in example. (cherry picked from commit 6a61714) Co-authored-by: David Jones <drj@pobox.com>
Don't worry @gpshead the rest-of-the-world is also on my todo list for converting to "modern" shell syntax. :) |
…pythonGH-13941) Replace backquotes with POSIXy command substitution in example.
…pythonGH-13941) Replace backquotes with POSIXy command substitution in example.
Backquote is somewhat deprecated in shell programming (not formally, but by many practitioners).
This PR replaces backquotes with command substitution.
In the
subprocess
module documentation.