------- Comment From [email protected] 2016-09-30 07:07 EDT-------
On xenial, problem still present
ubuntu@vm76:~$ ( cat /etc/os-release /proc/version; lsb_release -is ) | grep 
-iq Ubuntu && echo It-is-
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' 
encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe
It-is-
ubuntu@vm76:~$ dpkg -l bash grep
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                      Version           Architecture      Description
+++-=========================-=================-=================-========================================================
ii  bash                      4.3-14ubuntu1     ppc64el           GNU Bourne 
Again SHell
ii  grep                      2.25-1~16.04.1    ppc64el           GNU grep, 
egrep and fgrep
ubuntu@vm76:~$ sh -c 'lsb_release -is | false'
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' 
encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe

and on Yakketi even if grep release is higher, problem exists
$ dpkg -l bash grep
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  bash           4.3-15ubuntu ppc64el      GNU Bourne Again SHell
ii  grep           2.25-6       ppc64el      GNU grep, egrep and fgrep
ubuntu@vm20:~$ sh -c 'lsb_release -is | false'
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' 
encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1504127

Title:
  lsb_release throws exception if stdout is closed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1504127/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to