From owner-cvs-bin Sun Sep 28 01:38:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA18443 for cvs-bin-outgoing; Sun, 28 Sep 1997 01:38:35 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA18411; Sun, 28 Sep 1997 01:38:12 -0700 (PDT) From: Mark Murray Received: (from markm@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id BAA19887; Sun, 28 Sep 1997 01:33:00 -0700 (PDT) Date: Sun, 28 Sep 1997 01:33:00 -0700 (PDT) Message-Id: <199709280833.BAA19887@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/rcp Makefile rcp.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk markm 1997/09/28 01:33:00 PDT Modified files: bin/rcp Makefile rcp.c Log: Change to use the new KTH Kerberos. Also make -Wall a bit quieter. Revision Changes Path 1.8 +10 -8 src/bin/rcp/Makefile 1.15 +3 -3 src/bin/rcp/rcp.c From owner-cvs-bin Sun Sep 28 03:47:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA25311 for cvs-bin-outgoing; Sun, 28 Sep 1997 03:47:27 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA25264; Sun, 28 Sep 1997 03:46:55 -0700 (PDT) From: Wolfram Schneider Received: (from wosch@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id DAA22093; Sun, 28 Sep 1997 03:41:42 -0700 (PDT) Date: Sun, 28 Sep 1997 03:41:42 -0700 (PDT) Message-Id: <199709281041.DAA22093@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/mv mv.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wosch 1997/09/28 03:41:42 PDT Modified files: bin/mv mv.c Log: Endless loop. $ touch from to $ echo -n loop | mv -i from to overwrite to? ^C Revision Changes Path 1.14 +6 -5 src/bin/mv/mv.c From owner-cvs-bin Sun Sep 28 04:36:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA26727 for cvs-bin-outgoing; Sun, 28 Sep 1997 04:36:04 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA26688; Sun, 28 Sep 1997 04:35:52 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id VAA17274; Sun, 28 Sep 1997 21:30:43 +1000 Date: Sun, 28 Sep 1997 21:30:43 +1000 From: Bruce Evans Message-Id: <199709281130.VAA17274@godzilla.zeta.org.au> To: cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, wosch@FreeBSD.ORG Subject: Re: cvs commit: src/bin/mv mv.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Modified files: > bin/mv mv.c > Log: > Endless loop. > > $ touch from to > $ echo -n loop | mv -i from to > overwrite to? > ^C You need more context in the example so that ^C doesn't kill mv. Bruce From owner-cvs-bin Sun Sep 28 14:33:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA24079 for cvs-bin-outgoing; Sun, 28 Sep 1997 14:33:00 -0700 (PDT) Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA24072; Sun, 28 Sep 1997 14:32:56 -0700 (PDT) Received: from panke.panke.de (anonymous221.ppp.cs.tu-berlin.de [130.149.17.221]) by mail.cs.tu-berlin.de (8.8.6/8.8.7) with ESMTP id XAA14060; Sun, 28 Sep 1997 23:25:34 +0200 (MET DST) Received: (from wosch@localhost) by panke.panke.de (8.8.5/8.6.12) id XAA01218; Sun, 28 Sep 1997 23:13:55 +0200 (MET DST) To: Wolfram Schneider Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: Re: cvs commit: src/bin/mv mv.c References: <199709281041.DAA22093@freefall.freebsd.org> From: Wolfram Schneider Date: 28 Sep 1997 23:13:52 +0200 In-Reply-To: Wolfram Schneider's message of Sun, 28 Sep 1997 03:41:42 -0700 (PDT) Message-ID: Lines: 20 Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Wolfram Schneider writes: > wosch 1997/09/28 03:41:42 PDT > > Modified files: > bin/mv mv.c > Log: > Endless loop. This bug exist in serveral programs, e.g. vipw(8) and disklabel(8). Wolfram > $ touch from to > $ echo -n loop | mv -i from to > overwrite to? > ^C > > Revision Changes Path > 1.14 +6 -5 src/bin/mv/mv.c From owner-cvs-bin Sun Sep 28 14:33:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA24113 for cvs-bin-outgoing; Sun, 28 Sep 1997 14:33:17 -0700 (PDT) Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA24075; Sun, 28 Sep 1997 14:32:59 -0700 (PDT) Received: from panke.panke.de (anonymous221.ppp.cs.tu-berlin.de [130.149.17.221]) by mail.cs.tu-berlin.de (8.8.6/8.8.7) with ESMTP id XAA14066; Sun, 28 Sep 1997 23:25:39 +0200 (MET DST) Received: (from wosch@localhost) by panke.panke.de (8.8.5/8.6.12) id XAA01260; Sun, 28 Sep 1997 23:23:45 +0200 (MET DST) To: Bruce Evans Cc: cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Subject: Re: cvs commit: src/bin/mv mv.c References: <199709281130.VAA17274@godzilla.zeta.org.au> From: Wolfram Schneider Date: 28 Sep 1997 23:23:43 +0200 In-Reply-To: Bruce Evans's message of Sun, 28 Sep 1997 21:30:43 +1000 Message-ID: Lines: 18 Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Bruce Evans writes: > > $ touch from to > > $ echo -n loop | mv -i from to > > overwrite to? > > ^C > > You need more context in the example so that ^C doesn't kill mv. ^C intentionally killed mv(1) in the example above. What should you do with a process which eat all your CPU time? mv(1) print the message 'overwrite to? ' to stdout, read the characters 'l', 'o', 'o', 'p' from stdin, read 'EOF' from stdin and ignores it and try to read characters beyond EOF in an endless loop. -- Wolfram Schneider http://www.apfel.de/~wosch/ From owner-cvs-bin Mon Sep 29 00:28:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA24403 for cvs-bin-outgoing; Mon, 29 Sep 1997 00:28:08 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA24355; Mon, 29 Sep 1997 00:27:50 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id RAA21531; Mon, 29 Sep 1997 17:21:42 +1000 Date: Mon, 29 Sep 1997 17:21:42 +1000 From: Bruce Evans Message-Id: <199709290721.RAA21531@godzilla.zeta.org.au> To: bde@zeta.org.au, wosch@cs.tu-berlin.de Subject: Re: cvs commit: src/bin/mv mv.c Cc: cvs-all@freebsd.org, cvs-bin@freebsd.org, cvs-committers@freebsd.org Sender: owner-cvs-bin@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >> > $ touch from to >> > $ echo -n loop | mv -i from to >> > overwrite to? >> > ^C >> >> You need more context in the example so that ^C doesn't kill mv. > >^C intentionally killed mv(1) in the example above. What should you do >with a process which eat all your CPU time? Oops, I saw a shell loop where there was none. Bruce From owner-cvs-bin Mon Sep 29 08:21:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA16177 for cvs-bin-outgoing; Mon, 29 Sep 1997 08:21:11 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA16141; Mon, 29 Sep 1997 08:20:39 -0700 (PDT) From: Michael Smith Received: (from msmith@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id IAA03010; Mon, 29 Sep 1997 08:15:17 -0700 (PDT) Date: Mon, 29 Sep 1997 08:15:17 -0700 (PDT) Message-Id: <199709291515.IAA03010@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/sh miscbltin.c sh.1 Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk msmith 1997/09/29 08:15:17 PDT Modified files: bin/sh miscbltin.c sh.1 Log: Add the '-t timeout' option to the 'read' builtin. This allows the 'read' command to return an error if the user fails to supply any input withink a given time period. The behaviour of this option is similar to that of the like-named option in ksh93. Reviewed by: joerg Revision Changes Path 1.14 +63 -4 src/bin/sh/miscbltin.c 1.16 +9 -2 src/bin/sh/sh.1 From owner-cvs-bin Mon Sep 29 09:31:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA20690 for cvs-bin-outgoing; Mon, 29 Sep 1997 09:31:34 -0700 (PDT) Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA20680; Mon, 29 Sep 1997 09:31:26 -0700 (PDT) Received: from panke.panke.de (anonymous214.ppp.cs.tu-berlin.de [130.149.17.214]) by mail.cs.tu-berlin.de (8.8.6/8.8.7) with ESMTP id SAA02796; Mon, 29 Sep 1997 18:28:38 +0200 (MET DST) Received: (from wosch@localhost) by panke.panke.de (8.8.5/8.6.12) id PAA13331; Mon, 29 Sep 1997 15:39:28 +0200 (MET DST) To: cvs-committers@freebsd.org, cvs-all@freebsd.org, cvs-bin@freebsd.org Subject: Re: cvs commit: src/bin/mv mv.c References: <199709281041.DAA22093@freefall.freebsd.org> From: Wolfram Schneider Date: 29 Sep 1997 15:39:26 +0200 In-Reply-To: Wolfram Schneider's message of 28 Sep 1997 23:13:52 +0200 Message-ID: Lines: 47 Sender: owner-cvs-bin@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Wolfram Schneider writes: > > wosch 1997/09/28 03:41:42 PDT > > Modified files: > > bin/mv mv.c > > Log: > > Endless loop. > > This bug exist in serveral programs, e.g. vipw(8) and disklabel(8). I don't have a free disk handy. Can someone test this patch? Index: disklabel.c =================================================================== RCS file: /usr/cvs/src/sbin/disklabel/disklabel.c,v retrieving revision 1.12 diff -u -r1.12 disklabel.c --- disklabel.c 1997/06/10 11:08:53 1.12 +++ disklabel.c 1997/09/29 13:25:01 @@ -802,7 +802,7 @@ struct disklabel *lp; int f; { - register int c, fd; + register int c, fd, first; struct disklabel label; FILE *fp; @@ -833,11 +833,10 @@ } fclose(fp); printf("re-edit the label? [y]: "); fflush(stdout); - c = getchar(); - if (c != EOF && c != (int)'\n') - while (getchar() != (int)'\n') - ; - if (c == (int)'n') + first = c = getchar(); + while (c != '\n' && c != EOF) + c = getchar(); + if (first == (int)'n') break; } (void) unlink(tmpfil); -- Wolfram Schneider http://www.apfel.de/~wosch/ From owner-cvs-bin Mon Sep 29 09:56:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA22313 for cvs-bin-outgoing; Mon, 29 Sep 1997 09:56:22 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA22287; Mon, 29 Sep 1997 09:56:03 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id CAA10241; Tue, 30 Sep 1997 02:55:32 +1000 Date: Tue, 30 Sep 1997 02:55:32 +1000 From: Bruce Evans Message-Id: <199709291655.CAA10241@godzilla.zeta.org.au> To: cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, wosch@cs.tu-berlin.de Subject: Re: cvs commit: src/bin/mv mv.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> > Endless loop. >> >> This bug exist in serveral programs, e.g. vipw(8) and disklabel(8). > >I don't have a free disk handy. Can someone test this patch? No excuse :-). test with a vn disk. >@@ -833,11 +833,10 @@ > } > fclose(fp); > printf("re-edit the label? [y]: "); fflush(stdout); >- c = getchar(); >- if (c != EOF && c != (int)'\n') >- while (getchar() != (int)'\n') >- ; >- if (c == (int)'n') >+ first = c = getchar(); >+ while (c != '\n' && c != EOF) >+ c = getchar(); >+ if (first == (int)'n') > break; > } > (void) unlink(tmpfil); This isn't quite right, since the default is 'y', and EOF should not be taken as 'y'. The prompt is more misleading than usual (anything other than 'n' is taken as 'y', so 'N' is taken as 'y'). There is still one useless cast to int. Bruce From owner-cvs-bin Tue Sep 30 03:51:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA19185 for cvs-bin-outgoing; Tue, 30 Sep 1997 03:51:55 -0700 (PDT) Received: from ocean.campus.luth.se (ocean.campus.luth.se [130.240.194.116]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA19171; Tue, 30 Sep 1997 03:51:42 -0700 (PDT) Received: (from karpen@localhost) by ocean.campus.luth.se (8.8.5/8.8.5) id MAA02988; Tue, 30 Sep 1997 12:57:18 +0200 (CEST) From: Mikael Karpberg Message-Id: <199709301057.MAA02988@ocean.campus.luth.se> Subject: Re: cvs commit: src/bin/mv mv.c In-Reply-To: <199709291655.CAA10241@godzilla.zeta.org.au> from Bruce Evans at "Sep 30, 97 02:55:32 am" To: bde@zeta.org.au (Bruce Evans) Date: Tue, 30 Sep 1997 12:57:18 +0200 (CEST) Cc: cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-committers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk According to Bruce Evans: [patch to disklabel] > This isn't quite right, since the default is 'y', and EOF should not be > taken as 'y'. The prompt is more misleading than usual (anything other > than 'n' is taken as 'y', so 'N' is taken as 'y'). There is still one > useless cast to int. That seems very stupid. Shouldn't it be changed at least so that both 'n' and 'N' work as negative answers, while someone is in there messing around? Or is there some standard that forbids that? :-) /Mikael From owner-cvs-bin Tue Sep 30 13:12:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA18815 for cvs-bin-outgoing; Tue, 30 Sep 1997 13:12:34 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA18733; Tue, 30 Sep 1997 13:11:47 -0700 (PDT) From: Joerg Wunsch Received: (from joerg@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id NAA29527; Tue, 30 Sep 1997 13:06:15 -0700 (PDT) Date: Tue, 30 Sep 1997 13:06:15 -0700 (PDT) Message-Id: <199709302006.NAA29527@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/date date.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 1997/09/30 13:06:15 PDT Modified files: bin/date date.c Log: Fix the broken `date HHMM.SS' handling. PR: bin/4661 Submitted by: blank@sliphost37.uni-trier.de (Sascha Blank) Revision Changes Path 1.18 +3 -2 src/bin/date/date.c From owner-cvs-bin Tue Sep 30 13:12:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA18850 for cvs-bin-outgoing; Tue, 30 Sep 1997 13:12:52 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA18813; Tue, 30 Sep 1997 13:12:32 -0700 (PDT) From: Joerg Wunsch Received: (from joerg@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id NAA29562; Tue, 30 Sep 1997 13:07:01 -0700 (PDT) Date: Tue, 30 Sep 1997 13:07:01 -0700 (PDT) Message-Id: <199709302007.NAA29562@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/date date.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 1997/09/30 13:07:01 PDT Modified files: (Branch: RELENG_2_2) bin/date date.c Log: MFC: rev 1.18, fix broken `date HHMM.SS' Revision Changes Path 1.7.2.4 +3 -2 src/bin/date/date.c From owner-cvs-bin Tue Sep 30 22:30:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA17896 for cvs-bin-outgoing; Tue, 30 Sep 1997 22:30:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA17823; Tue, 30 Sep 1997 22:29:44 -0700 (PDT) From: "Daniel O'Callaghan" Received: (from danny@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id WAA02348; Tue, 30 Sep 1997 22:24:09 -0700 (PDT) Date: Tue, 30 Sep 1997 22:24:09 -0700 (PDT) Message-Id: <199710010524.WAA02348@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/date date.1 date.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk danny 1997/09/30 22:24:09 PDT Modified files: bin/date date.1 date.c Log: Add the ability to supress the '\n' at the end of the date printed. Revision Changes Path 1.19 +5 -2 src/bin/date/date.1 1.19 +10 -5 src/bin/date/date.c From owner-cvs-bin Tue Sep 30 22:50:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA18909 for cvs-bin-outgoing; Tue, 30 Sep 1997 22:50:41 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA18878; Tue, 30 Sep 1997 22:50:12 -0700 (PDT) From: "Daniel O'Callaghan" Received: (from danny@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id WAA02408; Tue, 30 Sep 1997 22:44:37 -0700 (PDT) Date: Tue, 30 Sep 1997 22:44:37 -0700 (PDT) Message-Id: <199710010544.WAA02408@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/date date.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk danny 1997/09/30 22:44:36 PDT Modified files: bin/date date.c Log: Add the '-s' flag to the usage string. Revision Changes Path 1.20 +2 -2 src/bin/date/date.c From owner-cvs-bin Tue Sep 30 23:19:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA20802 for cvs-bin-outgoing; Tue, 30 Sep 1997 23:19:26 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA20757; Tue, 30 Sep 1997 23:18:34 -0700 (PDT) From: "Daniel O'Callaghan" Received: (from danny@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id XAA02734; Tue, 30 Sep 1997 23:12:59 -0700 (PDT) Date: Tue, 30 Sep 1997 23:12:59 -0700 (PDT) Message-Id: <199710010612.XAA02734@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/date date.1 date.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk danny 1997/09/30 23:12:59 PDT Modified files: (Branch: RELENG_2_2) bin/date date.1 date.c Log: MFC: '-s' flag supresses newline at end of printed date. Revision Changes Path 1.8.2.5 +5 -2 src/bin/date/date.1 1.7.2.5 +11 -6 src/bin/date/date.c From owner-cvs-bin Wed Oct 1 02:18:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA01243 for cvs-bin-outgoing; Wed, 1 Oct 1997 02:18:50 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA01194; Wed, 1 Oct 1997 02:18:16 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id TAA02502; Wed, 1 Oct 1997 19:15:14 +1000 Date: Wed, 1 Oct 1997 19:15:14 +1000 From: Bruce Evans Message-Id: <199710010915.TAA02502@godzilla.zeta.org.au> To: cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, danny@FreeBSD.ORG Subject: Re: cvs commit: src/bin/date date.1 date.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >danny 1997/09/30 22:24:09 PDT > > Modified files: > bin/date date.1 date.c > Log: > Add the ability to supress the '\n' at the end of the date printed. Why not just use echo -n "`date`"? Bruce From owner-cvs-bin Wed Oct 1 04:20:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA07015 for cvs-bin-outgoing; Wed, 1 Oct 1997 04:20:00 -0700 (PDT) Received: from panda.hilink.com.au (panda.hilink.com.au [203.8.15.25]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA06929; Wed, 1 Oct 1997 04:19:23 -0700 (PDT) Received: (from danny@localhost) by panda.hilink.com.au (8.8.5/8.8.5) id VAA18037; Wed, 1 Oct 1997 21:19:10 +1000 (EST) Date: Wed, 1 Oct 1997 21:19:09 +1000 (EST) From: "Daniel O'Callaghan" To: Bruce Evans cc: cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Subject: Re: cvs commit: src/bin/date date.1 date.c In-Reply-To: <199710010915.TAA02502@godzilla.zeta.org.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 1 Oct 1997, Bruce Evans wrote: > >danny 1997/09/30 22:24:09 PDT > > > > Modified files: > > bin/date date.1 date.c > > Log: > > Add the ability to supress the '\n' at the end of the date printed. > > Why not just use echo -n "`date`"? Well, I'll confess I didn't think of doing that. date | sed {something} would probably work, too, but it just seemed nicer to ask date to not print the '\n' in the first place. Danny From owner-cvs-bin Wed Oct 1 13:41:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA06575 for cvs-bin-outgoing; Wed, 1 Oct 1997 13:41:22 -0700 (PDT) Received: from GndRsh.aac.dev.com (GndRsh.aac.dev.com [198.145.92.241]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA06560; Wed, 1 Oct 1997 13:41:02 -0700 (PDT) Received: (from rgrimes@localhost) by GndRsh.aac.dev.com (8.8.5/8.7.3) id NAA24627; Wed, 1 Oct 1997 13:40:37 -0700 (PDT) From: "Rodney W. Grimes" Message-Id: <199710012040.NAA24627@GndRsh.aac.dev.com> Subject: Re: cvs commit: src/bin/date date.1 date.c In-Reply-To: <199710010524.WAA02348@freefall.freebsd.org> from Daniel O'Callaghan at "Sep 30, 97 10:24:09 pm" To: danny@FreeBSD.ORG (Daniel O'Callaghan) Date: Wed, 1 Oct 1997 13:40:37 -0700 (PDT) Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > danny 1997/09/30 22:24:09 PDT > > Modified files: > bin/date date.1 date.c > Log: > Add the ability to supress the '\n' at the end of the date printed. Don't people even know about how to use the tool building ability of unix anymore, this proliferation of duplicate functionality via options is getting rather over done. echo -n `date` -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation, Inc. Reliable computers for FreeBSD From owner-cvs-bin Wed Oct 1 15:49:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA14517 for cvs-bin-outgoing; Wed, 1 Oct 1997 15:49:25 -0700 (PDT) Received: from gaia.coppe.ufrj.br (jonny@[146.164.5.200]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA14503; Wed, 1 Oct 1997 15:48:57 -0700 (PDT) Received: (from jonny@localhost) by gaia.coppe.ufrj.br (8.8.7/8.8.7) id TAA02266; Wed, 1 Oct 1997 19:48:19 -0300 (EST) From: Joao Carlos Mendes Luis Message-Id: <199710012248.TAA02266@gaia.coppe.ufrj.br> Subject: Re: cvs commit: src/bin/date date.1 date.c In-Reply-To: <199710012040.NAA24627@GndRsh.aac.dev.com> from "Rodney W. Grimes" at "Oct 1, 97 01:40:37 pm" To: rgrimes@GndRsh.aac.dev.com (Rodney W. Grimes) Date: Wed, 1 Oct 1997 19:48:19 -0300 (EST) Cc: danny@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Reply-To: chat@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk #define quoting(Rodney W. Grimes) // > Modified files: // > bin/date date.1 date.c // > Log: // > Add the ability to supress the '\n' at the end of the date printed. // // Don't people even know about how to use the tool building ability // of unix anymore, this proliferation of duplicate functionality // via options is getting rather over done. // // echo -n `date` It may be similar, but it is NOT equal... Try this: :) echo -n "`date`" Jonny -- Joao Carlos Mendes Luis jonny@gta.ufrj.br +55 21 290-4698 jonny@coppe.ufrj.br Universidade Federal do Rio de Janeiro UFRJ/COPPE/CISI PGP fingerprint: 29 C0 50 B9 B6 3E 58 F2 83 5F E3 26 BF 0F EA 67 From owner-cvs-bin Fri Oct 3 05:57:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA11568 for cvs-bin-outgoing; Fri, 3 Oct 1997 05:57:22 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA11502; Fri, 3 Oct 1997 05:55:22 -0700 (PDT) From: "Daniel O'Callaghan" Received: (from danny@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id FAA02058; Fri, 3 Oct 1997 05:49:29 -0700 (PDT) Date: Fri, 3 Oct 1997 05:49:29 -0700 (PDT) Message-Id: <199710031249.FAA02058@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/date date.1 date.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk danny 1997/10/03 05:49:29 PDT Modified files: bin/date date.1 date.c Log: Back out suppress '\n' mod. Revision Changes Path 1.20 +2 -5 src/bin/date/date.1 1.21 +6 -11 src/bin/date/date.c From owner-cvs-bin Fri Oct 3 06:02:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA11858 for cvs-bin-outgoing; Fri, 3 Oct 1997 06:02:20 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA11773; Fri, 3 Oct 1997 06:00:26 -0700 (PDT) From: "Daniel O'Callaghan" Received: (from danny@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id FAA04278; Fri, 3 Oct 1997 05:54:32 -0700 (PDT) Date: Fri, 3 Oct 1997 05:54:32 -0700 (PDT) Message-Id: <199710031254.FAA04278@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/date date.1 date.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk danny 1997/10/03 05:54:32 PDT Modified files: (Branch: RELENG_2_2) bin/date date.1 date.c Log: Back out suppress '\n' mod. Revision Changes Path 1.8.2.6 +1 -4 src/bin/date/date.1 1.7.2.6 +6 -11 src/bin/date/date.c From owner-cvs-bin Fri Oct 3 11:15:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA02625 for cvs-bin-outgoing; Fri, 3 Oct 1997 11:15:58 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA02579; Fri, 3 Oct 1997 11:15:13 -0700 (PDT) From: Wolfram Schneider Received: (from wosch@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id LAA29750; Fri, 3 Oct 1997 11:09:18 -0700 (PDT) Date: Fri, 3 Oct 1997 11:09:18 -0700 (PDT) Message-Id: <199710031809.LAA29750@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/date date.1 Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wosch 1997/10/03 11:09:18 PDT Modified files: bin/date date.1 Log: Change example from US to international standard date notation. Revision Changes Path 1.21 +3 -3 src/bin/date/date.1 From owner-cvs-bin Fri Oct 3 11:17:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA02754 for cvs-bin-outgoing; Fri, 3 Oct 1997 11:17:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA02729; Fri, 3 Oct 1997 11:17:09 -0700 (PDT) From: Wolfram Schneider Received: (from wosch@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id LAA29839; Fri, 3 Oct 1997 11:11:14 -0700 (PDT) Date: Fri, 3 Oct 1997 11:11:14 -0700 (PDT) Message-Id: <199710031811.LAA29839@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/cp utils.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wosch 1997/10/03 11:11:14 PDT Modified files: bin/cp utils.c Log: cp(1) is too silent if used with the option -i. It should print which input cp(1) expect (y/n) and print a warning if the file was not overwritten. Revision Changes Path 1.14 +5 -2 src/bin/cp/utils.c From owner-cvs-bin Sat Oct 4 06:03:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA15430 for cvs-bin-outgoing; Sat, 4 Oct 1997 06:03:58 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA15374; Sat, 4 Oct 1997 06:02:12 -0700 (PDT) From: Wolfram Schneider Received: (from wosch@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id GAA15713; Sat, 4 Oct 1997 06:02:07 -0700 (PDT) Date: Sat, 4 Oct 1997 06:02:07 -0700 (PDT) Message-Id: <199710041302.GAA15713@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/mv mv.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wosch 1997/10/04 06:02:07 PDT Modified files: bin/mv mv.c Log: mv(1) is too silent if used with the option -i. It should print which input mv(1) expect (y/n) and print a warning if the file was not overwritten. Revision Changes Path 1.15 +9 -6 src/bin/mv/mv.c