From owner-freebsd-hackers Tue Jul 11 6:49:27 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from iclub.nsu.ru (iclub.nsu.ru [193.124.222.66]) by hub.freebsd.org (Postfix) with ESMTP id 90A1E37BAE7 for ; Tue, 11 Jul 2000 06:48:40 -0700 (PDT) (envelope-from fjoe@iclub.nsu.ru) Received: from localhost (fjoe@localhost) by iclub.nsu.ru (8.9.3/8.9.3) with ESMTP id UAA28605 for ; Tue, 11 Jul 2000 20:41:46 +0700 (NSS) (envelope-from fjoe@iclub.nsu.ru) Date: Tue, 11 Jul 2000 20:41:46 +0700 (NSS) From: Max Khon To: hackers@FreeBSD.ORG Subject: Re: PATCH src/etc/root : more->less In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, there! On Tue, 11 Jul 2000 laa@laa.zp.ua wrote: > What about it for 4.0-ST? > > Index: src/etc/root/dot.cshrc [trim] and what's about this? --- usr.sbin/mergemaster/mergemaster.sh.orig Tue Jul 11 21:34:20 2000 +++ usr.sbin/mergemaster/mergemaster.sh Tue Jul 11 21:37:11 2000 @@ -114,23 +114,17 @@ echo " PAGER and EDITOR. Meanwhile, what would you like to do?" echo '' echo " Use 'e' to exit mergemaster and fix your PAGER variable" - if [ -x /usr/local/bin/less ]; then - echo " Use 'l' to set PAGER to /usr/local/bin/less for this run" - fi - echo " Use 'm' to use plain old 'more' as your PAGER for this run" + echo " Use 'l' to use 'less' as your PAGER for this run" echo '' - echo " Default is to use plain old 'more' " + echo " Default is to use 'less' " echo '' - read -p "What should I do? [Use 'more'] " FIXPAGER + read -p "What should I do? [Use 'less'] " FIXPAGER case "${FIXPAGER}" in [eE]*) exit 0 ;; - [lL]*) - PAGER=/usr/local/bin/less - ;; *) - PAGER=more + PAGER=less ;; esac echo '' @@ -139,11 +133,11 @@ esac # If user has a pager defined, or got assigned one above, use it. -# If not, use more. +# If not, use less. # -PAGER=${PAGER:-more} +PAGER=${PAGER:-less} -if [ -n "${VERBOSE}" -a ! "${PAGER}" = "more" ]; then +if [ -n "${VERBOSE}" -a ! "${PAGER}" = "less" ]; then echo " *** You have ${PAGER} defined as your pager so we will use that" echo '' sleep 3 @@ -495,7 +489,7 @@ rm "${COMPFILE}" else # Ok, the files are different, so show the user where they differ. Use user's - # choice of diff methods; and user's pager if they have one. Use more if not. + # choice of diff methods; and user's pager if they have one. Use less if not. # Use unified diffs by default. Context diffs give me a headache. :) # case "${AUTO_RUN}" in /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message