diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -806,6 +806,8 @@ Alternatively, for trusted input, the shell's own pipeline support may still be used directly: +:: + output=`dmesg | grep hda` # becomes output=check_output("dmesg | grep hda", shell=True)