Your message dated Wed, 30 Jul 2014 03:57:53 +0200
with message-id <[email protected]>
and subject line Re: Bug#756444: dpkg: too wide columns when piping dpkg output
has caused the Debian Bug report #756444,
regarding dpkg: too wide columns when piping dpkg output
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
756444: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756444
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dpkg
Version: 1.17.10ubuntu1
Severity: normal
It's not hard to guess that this bug is _very_ closely related to bug 734114.
However, that bug was about _redirecting output_, which sounds to me as if this
is only regarding the "greater than" sign(s) redirection (whether single
redirect or appending by applying two gt signs).
But "my" bug is about _piping output_ e. g. to grep, which creates a barely
readable output:
$ dpkg -l | grep '^ii\s\slibc'
For instance...
Using a *libc* wildcard and omitting the grep pipe will give a perfect output,
though.
-- System Information:
Debian Release: jessie/sid
APT prefers trusty-updates
APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500,
'trusty-proposed'), (500, 'trusty'), (100, 'trusty-backports')
Architecture: i386 (i686)
Kernel: Linux 3.13.0-32-generic (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages dpkg depends on:
ii libbz2-1.0 1.0.6-5
ii libc6 2.19-0ubuntu6
ii liblzma5 5.1.1alpha+20120614-2ubuntu2
ii libselinux1 2.2.2-1ubuntu0.1
ii tar 1.27.1-1
ii zlib1g 1:1.2.8.dfsg-1ubuntu1
dpkg recommends no packages.
Versions of packages dpkg suggests:
ii apt 1.0.1ubuntu2.2
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi!
On Tue, 2014-07-29 at 23:33:32 +0200, Andy wrote:
> Package: dpkg
> Version: 1.17.10ubuntu1
> Severity: normal
>
> It's not hard to guess that this bug is _very_ closely related to bug 734114.
Not really, see below.
> However, that bug was about _redirecting output_, which sounds to me as if
> this
> is only regarding the "greater than" sign(s) redirection (whether single
> redirect or appending by applying two gt signs).
>
> But "my" bug is about _piping output_ e. g. to grep, which creates a barely
> readable output:
A redirection and a pipe are exactly the same when it comes to the
code, they are just file descriptors not attached to a tty.
> $ dpkg -l | grep '^ii\s\slibc'
>
> For instance...
> Using a *libc* wildcard and omitting the grep pipe will give a perfect output,
> though.
«dpkg -l» computes the output width from what is going to be output,
so if you filter it afterwards you'll get a wider output than what
you'd expect, but when you filter it beforehand with the wildcard
argument then the output is shorter. dpkg has no way to know what you
are going to be filtering afterwards. Also «dpkg -l» is not really a
command with machine parseable output, for that you should be using
«dpkg-query -W» with its -f option.
So I don't really see any bug here, and thus I'm closing the bug
report with this mail.
Thanks,
Guillem
--- End Message ---