[PLUGIN] Lesslog -> run bzr log through less automatically

Michael Ellerman michael at ellerman.id.au
Mon Dec 12 07:20:26 GMT 2005


On Mon, 12 Dec 2005 00:16, Martin Pool wrote:
> On 11 Dec 2005, Michael Ellerman <michael at ellerman.id.au> wrote:
> > On Sun, 11 Dec 2005 05:58, Wouter Bolsterlee wrote:
> > > P? Fri, Dec 09, 2005 at 09:10:36AM -0600, John Arbash Meinel skrev:
> > > > We should only invoke a pager if the number of lines are going to be
> > > > more than a screenful, and sys.stdout is a tty. You probably are
> > > > doing the latter, though I doubt you are doing the former. (You would
> > > > have to wrap up the output to figure out how long it is, etc).
> > >
> > > less -F does exactly this, as the manpage states:
> > > | -F or --quit-if-one-screen
> > > |     Causes less to automatically exit if the entire file can be
> > > | displayed on the first screen.
> >
> > Hmm, doesn't seem to work ? ie. it exits if log is less than one screen,
> > but it doesn't actually display _anything_.
>
> It works for me, e.g.
>
>   date | less -F
>
> prints just one line.  Perhaps you have $LESS set to something that's
> interfering with it?

Weirdo, no idea why it's not working :?

concordia ~$ date | less -F
concordia ~$ 

concordia ~$ alias | grep less
concordia ~$ set | grep LESS
concordia ~$ which less
/usr/bin/less
concordia ~$ dpkg -l less
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  less           382-2          Pager program similar to more

-- 
Michael Ellerman
IBM OzLabs

email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051212/d3c57f54/attachment.pgp 


More information about the bazaar mailing list