Hello Matthew, On Tue, Jan 8, 2013 at 4:59 PM, Matthew Gabeler-Lee <chee...@fastcat.org> wrote: > Diffstat tries to get the terminal width to auto-scale the histogram, but > the method it uses simply doesn't work, at least with bash. > > The method it uses is getenv("COLUMNS"). Unfortunately, at least with bash, > the COLUMNS variable is normally a "magic" variable, it doesn't really exist > in the environment, and so diffstat always thinks the terminal is 80 chars > wide, which often results in forcing the histogram to only be its minimum 10 > chars wide, no matter how big the terminal window is.
By default, diffstat doesn't try to identify the terminal width at all, but uses a default 80 chars columns width value. It was a recent patch[1] that introduces the behaviour of checking COLUMNS (else you'd have to use -w NUM). So the current situation might be better than the static columns width in same cases, so can you elaborate a bit more what you want from this bug report (I would close it actually)? :) [1] http://patch-tracker.debian.org/patch/series/view/diffstat/1.55-3/01-check-columns-env-var.patch Cheers, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org