From owner-freebsd-bugs Wed Feb 5 5:20:17 2003 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 E2AD237B405 for ; Wed, 5 Feb 2003 05:20:15 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B26CF43FAF for ; Wed, 5 Feb 2003 05:20:06 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h15DK6NS003656 for ; Wed, 5 Feb 2003 05:20:06 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h15DK6tL003655; Wed, 5 Feb 2003 05:20:06 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E93937B401 for ; Wed, 5 Feb 2003 05:10:31 -0800 (PST) Received: from atlas.informatik.rwth-aachen.de (atlas.Informatik.RWTH-Aachen.DE [137.226.194.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F72343FA7 for ; Wed, 5 Feb 2003 05:10:29 -0800 (PST) (envelope-from stolz@i2.informatik.rwth-aachen.de) Received: from menelaos.informatik.rwth-aachen.de (menelaos.Informatik.RWTH-Aachen.DE [137.226.194.73]) by atlas.informatik.rwth-aachen.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id h15DARW17730 for ; Wed, 5 Feb 2003 14:10:27 +0100 Received: (from stolz@localhost) by menelaos.informatik.rwth-aachen.de (8.12.6/8.12.6/Submit) id h15DBgdJ074878; Wed, 5 Feb 2003 14:11:42 +0100 (CET) (envelope-from stolz) Message-Id: <200302051311.h15DBgdJ074878@menelaos.informatik.rwth-aachen.de> Date: Wed, 5 Feb 2003 14:11:42 +0100 (CET) From: Volker Stolz Reply-To: Volker Stolz To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/47953: [patch] Teach /usr/bin/msgs difference between singular and plural Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 47953 >Category: bin >Synopsis: [patch] Teach /usr/bin/msgs difference between singular and plural >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: Wed Feb 05 05:20:05 PST 2003 >Closed-Date: >Last-Modified: >Originator: Volker Stolz >Release: FreeBSD 4.7-STABLE i386 >Organization: Lehrstuhl für Informatik II >Environment: System: FreeBSD menelaos.informatik.rwth-aachen.de 4.7-STABLE FreeBSD 4.7-STABLE #0: Thu Jan 23 16:45:31 CET 2003 root@menelaos.informatik.rwth-aachen.de:/usr/src/sys/compile/MENELAOS i386 >Description: /usr/bin/msgs was asking me if I'd like to see "1 lines". No, I won't. Simple fix to printf to remove this little bit of friction between OS and user. >How-To-Repeat: - Setup msgs mechanism (yes, I actually use this!) - mail msgs Subject: Test Foo . - /usr/bin/msgs -> "(1 lines)" >Fix: Straight forward: --- msgs/msgs.c.orig Fri Jan 31 17:28:09 2003 +++ msgs/msgs.c Wed Feb 5 13:58:40 2003 @@ -518,7 +518,7 @@ lct = linecnt(newmsg); if (lct) - printf("(%d%slines) ", lct, seensubj? " " : " more "); + printf("(%d%sline%s) ", lct, seensubj? " " : " more ", (lct==1)? "" : "s"); if (hdrs) { printf("\n-----\n"); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message