From owner-freebsd-bugs@FreeBSD.ORG Mon Aug 28 22:20:19 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 042B516A4EF for ; Mon, 28 Aug 2006 22:20:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2564843D5F for ; Mon, 28 Aug 2006 22:20:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7SMKCP3066617 for ; Mon, 28 Aug 2006 22:20:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7SMKCqO066616; Mon, 28 Aug 2006 22:20:12 GMT (envelope-from gnats) Resent-Date: Mon, 28 Aug 2006 22:20:12 GMT Resent-Message-Id: <200608282220.k7SMKCqO066616@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eric Huss Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BB2C16A4DF for ; Mon, 28 Aug 2006 22:14:18 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38BBD43D49 for ; Mon, 28 Aug 2006 22:14:18 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k7SMEIHc016677 for ; Mon, 28 Aug 2006 22:14:18 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k7SMEHfL016676; Mon, 28 Aug 2006 22:14:17 GMT (envelope-from nobody) Message-Id: <200608282214.k7SMEHfL016676@www.freebsd.org> Date: Mon, 28 Aug 2006 22:14:17 GMT From: Eric Huss To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/102624: lesspipe.sh does not handle file updates X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 22:20:19 -0000 >Number: 102624 >Category: misc >Synopsis: lesspipe.sh does not handle file updates >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 28 22:20:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Eric Huss >Release: 6.1 >Organization: IronPort >Environment: 6.1-RELEASE >Description: The lesspipe.sh that ships with FreeBSD does not allow you to "tail" or "follow" a file that is changing (such as a logfile). >How-To-Repeat: Set the LESSOPEN environment variable: export LESSOPEN="|lesspipe.sh %s" Run "less" on a file that has data appending to it (such as a logfile). Press capital G to try to view more data...notice that it does not detect file changes. Press capital F to try to "follow" appended data, notice that it does not work. >Fix: Remove the call to "cat" from the lesspipe.sh sample that ships with FreeBSD: *) exec cat $1 2>/dev/null ;; I'm not sure if there was a reason it was added (in CVS revision 1.2), because less works just fine without it (and the man page example does not have a * entry). diff -u -r1.2 lesspipe.sh --- lesspipe.sh 17 May 2005 11:08:11 -0000 1.2 +++ lesspipe.sh 28 Aug 2006 22:13:12 -0000 @@ -13,7 +13,4 @@ *.bz2) exec bzip2 -d -c $1 2>/dev/null ;; - *) - exec cat $1 2>/dev/null - ;; esac >Release-Note: >Audit-Trail: >Unformatted: