Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 1996 11:10:49 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        thomas@ghpc8.ihf.rwth-aachen.de (Thomas Gellekum)
Cc:        bugs@FreeBSD.ORG
Subject:   Re: ed(1) output on stderr or stdout?
Message-ID:  <199605220910.LAA13294@uriah.heep.sax.de>
In-Reply-To: <199605220738.JAA13206@ghpc6.ihf.rwth-aachen.de> from Thomas Gellekum at "May 22, 96 09:38:56 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605220910.LAA13294>