Replace backquote with command substitution in subprocess doc example (GH-13941)
Replace backquotes with POSIXy command substitution in example.
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index af33879..7e1e3f9 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -1166,12 +1166,12 @@
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::
@@ -1182,7 +1182,7 @@
.. code-block:: bash
- output=`dmesg | grep hda`
+ output=$(dmesg | grep hda)
becomes::
@@ -1199,7 +1199,7 @@
.. code-block:: bash
- output=`dmesg | grep hda`
+ output=$(dmesg | grep hda)
becomes::