From owner-freebsd-bugs@freebsd.org Mon Apr 4 06:05:15 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 060FAB02787 for ; Mon, 4 Apr 2016 06:05:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D098A19D9 for ; Mon, 4 Apr 2016 06:05:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u3465EJ0053379 for ; Mon, 4 Apr 2016 06:05:14 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 208497] less in 10.3-RELEASE in more compatibility mode cause freebsd-update to page when it shouldn't Date: Mon, 04 Apr 2016 06:05:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.3-BETA2 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dereks@lifeofadishwasher.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_file_loc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2016 06:05:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208497 dereks@lifeofadishwasher.com changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.greenwoodsoftwar | |e.com/less/news.481.html --- Comment #1 from dereks@lifeofadishwasher.com --- less's update to 481 in 10.3-RELEASE causes more compatibility more to page output when you reach EOF: ... - In more-compatible mode, change the -e option to work like -E, not -EF.= =20 ... This didn't happen in <10.3 running freebsd-update without when nothing was= to be updated. less when ran in more compatibility without -e applies as if -e was used. freebsd-update sends all output to a $PAGER (by default - more) by piping a= sh if to $PAGER: if .... fi | $PAGER I don't think less should change for this (or if it's even a bug in less). Should freebsd-update to not pipe if's contents but rather a grouped { ... = ; } output inside the if block: ... # Report to the user if any updates were avoided due to local changes if [ -s modifiedfiles ]; then { echo echo -n "The following files are affected by updates, " echo "but no changes have"=20 echo -n "been downloaded because the files have been " echo "modified locally:" cat modifiedfiles; } | $PAGER fi ... I believe that's the way PAGER is used in all of freebsd-update. If so should the attached patch fix this? PS: I hit return in the subject when I first reported this bug hence the em= pty comment. --=20 You are receiving this mail because: You are the assignee for the bug.=