Skip to content

[3.8] Replace backquote with command substitution in subprocess doc example (GH-13941) #14793

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 1 commit into from
Jul 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Doc/library/subprocess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1166,12 +1166,12 @@ In the following examples, we assume that the relevant functions have already
been imported from the :mod:`subprocess` module.


Replacing /bin/sh shell backquote
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Replacing :program:`/bin/sh` shell command substitution
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. code-block:: bash

output=`mycmd myarg`
output=$(mycmd myarg)

becomes::

Expand All @@ -1182,7 +1182,7 @@ Replacing shell pipeline

.. code-block:: bash

output=`dmesg | grep hda`
output=$(dmesg | grep hda)

becomes::

Expand All @@ -1199,7 +1199,7 @@ be used directly:

.. code-block:: bash

output=`dmesg | grep hda`
output=$(dmesg | grep hda)

becomes::

Expand Down
2 changes: 0 additions & 2 deletions Doc/tools/susp-ignored.csv
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,6 @@ library/stdtypes,,:len,s[len(s):len(s)]
library/stdtypes,,::,>>> y = m[::2]
library/stdtypes,,::,>>> z = y[::-2]
library/string,,`,"!""#$%&'()*+,-./:;<=>?@[\]^_`{|}~"
library/subprocess,,`,"output=`dmesg | grep hda`"
library/subprocess,,`,"output=`mycmd myarg`"
library/tarfile,,:bz2,
library/tarfile,,:compression,filemode[:compression]
library/tarfile,,:gz,
Expand Down