[New-bugs-announce] [issue35060] subprocess output seems to depend on size of terminal screen
Edward Pratt
report at bugs.python.org
Wed Oct 24 11:36:53 EDT 2018
New submission from Edward Pratt <epratt8181 at gmail.com>:
I am looking for a string inside of a process, and it seems that the output of the check_output command depends on the screen size of the terminal I run the code in.
Here I ran the code with a normal screen resolution:
>>> result = subprocess.check_output(['ps', 'aux']).decode('ascii', errors='ignore')
>>> 'app-id' in result
False
Then I zoom out to the point where I can barely read the text on the screen, and this is the output I get:
>>> result = subprocess.check_output(['ps', 'aux']).decode('ascii', errors='ignore')
>>> 'app-id' in result
True
----------
components: Demos and Tools
messages: 328371
nosy: epsolos
priority: normal
severity: normal
status: open
title: subprocess output seems to depend on size of terminal screen
type: behavior
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35060>
_______________________________________
More information about the New-bugs-announce
mailing list