From owner-freebsd-bugs Wed May 22 03:14:31 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id DAA12583 for bugs-outgoing; Wed, 22 May 1996 03:14:31 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id DAA12539 for ; Wed, 22 May 1996 03:14:20 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id MAA26577; Wed, 22 May 1996 12:14:02 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id MAA15649; Wed, 22 May 1996 12:14:02 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id LAA13294; Wed, 22 May 1996 11:10:49 +0200 (MET DST) From: J Wunsch Message-Id: <199605220910.LAA13294@uriah.heep.sax.de> Subject: Re: ed(1) output on stderr or stdout? To: thomas@ghpc8.ihf.rwth-aachen.de (Thomas Gellekum) Date: Wed, 22 May 1996 11:10:49 +0200 (MET DST) Cc: bugs@FreeBSD.ORG Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199605220738.JAA13206@ghpc6.ihf.rwth-aachen.de> from Thomas Gellekum at "May 22, 96 09:38:56 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Thomas Gellekum wrote: > The following patch fixes this: > > --- bin/ed/io.c.orig Tue May 21 19:23:38 1996 > +++ bin/ed/io.c Tue May 21 19:52:49 1996 > @@ -58,7 +58,7 @@ > sprintf(errmsg, "cannot close input file"); > return ERR; > } > - fprintf(stderr, !scripted ? "%lu\n" : "", size); > + fprintf(stdout, !scripted ? "%lu\n" : "", size); > return current_addr - n; > } > > @@ -173,7 +173,7 @@ > sprintf(errmsg, "cannot close output file"); > return ERR; > } > - fprintf(stderr, !scripted ? "%lu\n" : "", size); > + fprintf(stdout, !scripted ? "%lu\n" : "", size); > return n ? m - n + 1 : 0; > } > > I'd like to commit this if there are no objections. Verified that it complies to Posix.2. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)