In a message of Thu, 29 Oct 2015 11:11:17 +0100, Laura Creighton writes: >In a message of Thu, 29 Oct 2015 09:52:56 +0000, David Aldrich writes: >>Hi >> >>I am working on Linux with Python 3.4. >> >>I want to do a bash diff on two text files and show just the first 20 lines >>of diff's output. So I tried: >> >>>>> cmd = 'head -20 <(diff ' + file1 + ' ' + file2 + ')' >>>>> subprocess.check_call(cmd, shell=True) > >I am reading https://docs.python.org/3.5/library/subprocess.html > >because my first thought was that shell should be False here. >The doc doesn't say. Filing doc bug now. > >Laura
False alarm, I just cannot read today. Inject more caffeine and try again. Laura -- https://mail.python.org/mailman/listinfo/python-list