Date: Wed, 5 Feb 2003 14:11:42 +0100 (CET) From: Volker Stolz <stolz@i2.informatik.rwth-aachen.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/47953: [patch] Teach /usr/bin/msgs difference between singular and plural Message-ID: <200302051311.h15DBgdJ074878@menelaos.informatik.rwth-aachen.de>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302051311.h15DBgdJ074878>