Diffstat on attached patch, which now considers stdout's status as a tty
before acting on COLUMNS:

 debian/patches/00list                          |    1 
 debian/patches/01-check-columns-env-var.dpatch |   30 +++++++++++++++++++++++++
 diffstat-1.45/debian/changelog                 |   12 ++++++++++
 diffstat-1.45/debian/control                   |    5 ++--
 diffstat-1.45/debian/rules                     |    9 +++++--
 5 files changed, 53 insertions(+), 4 deletions(-)

Thinking about it more, though, I think I like dpkg's behavior, wherein
COLUMNS is honored even when stdout is a process instead of a tty.  For
example if you run:

  COLUMNS=70 dpkg -l ubuntu-desktop | less

The output is properly formatted, whereas if you remove the COLUMNS=,
you'll find that it spans nearly 140 columns.  Either way, though, it
works.

** Attachment added: "This one considers whether or not stdout is a tty"
   http://launchpadlibrarian.net/13009086/columns_for_tty.ubuntu.debdiff

-- 
diffstat does not honor COLUMNS environment variable
https://bugs.launchpad.net/bugs/209537
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to