Re: length of a package extended description
On 2015-01-13 01:42:57 +1300, Chris Bannister wrote:
> On Mon, Jan 12, 2015 at 01:24:20PM +0100, Vincent Lefevre wrote:
> > On 2015-01-10 13:34:37 +0100, Thorsten Glaser wrote:
> > > Nonsense, the format is trivial and stable.
> >
> > I've never seen that it was stable.
> >
> > > A quick one-line-ish fix for this (requires a modern shell) is:
> > >
> > > apt-cache show texlive-latex-extra | tr '\n' $'\001' | sed $'s/\001 / /g' | tr $'\001' '\n' | sort | less +-S
> >
> > which doesn't work at all, neither with zsh nor with bash.
>
> Works here, just have to press return on the 'Chop long lines (press
> RETURN)' message. (bash, version 4.3.30)
I still want to be able to see the full "Depends:" and so on.
And not with a pager. Piping to:
perl -ne '/^[^ ]/ and $f = /^Description-/, $c = 0; print if ($c += $f) < 25'
seems to work, but there's still the issue of doing the pipe
automatically without unwanted side effects.
What's annoying is that it would prevent possible future coloring.
Here's a first problem. :(
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Reply to: