Subject: Re: etcupdate
To: David Brownlee <abs@NetBSD.org>
From: Johnny Billquist <firstname.lastname@example.org>
Date: 02/04/2004 15:10:00
On Wed, 4 Feb 2004, David Brownlee wrote:
> On Wed, 4 Feb 2004, Arto Huusko wrote:
> > Hello,
> > I'm just updating my system to 1.6ZI and running etcupdate.
> > Something that has always been bugging me is the situation
> > where etcupdate runs diff between the old /etc file and the
> > new one, and the differences between the files doesn't take
> > more than one screen, but the diff + etcupdate prompt do
> > take more than one screen.
> > etcupdate prompt (Please select one of the following...)
> > takes 11 lines. Let's say diff between the files is 20
> > lines. When given for more(1), more does nothing and just
> > displays the diffs. Then etcupdate prints the prompt,
> > and scrolls pieces of the diff off display.
> > Is there some trick, and could this be etcupdate default,
> > to make more(1) stop always when it shows the diff.
> You could prepend 11 blank lines to the diff before piping it
> to more...
setenv PAGER less
less is the same as more in NetBSD, but the less default behaviour is to
prompt at eof, and not just exit.
I haven't checked that etcupdate uses $PAGER though...
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: email@example.com || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol