NetBSD Problem Report #8773
Received: (qmail 6170 invoked from network); 10 Nov 1999 14:00:21 -0000
Message-Id: <xof9046o39p.fsf@blubb.pdc.kth.se>
Date: 10 Nov 1999 15:00:18 +0100
From: joda@pdc.kth.se (Johan Danielsson)
Reply-To: joda@pdc.kth.se
To: gnats-bugs@gnats.netbsd.org
Subject: sort doesn't newline terminate error messages
>Number: 8773
>Category: bin
>Synopsis: sort doesn't newline terminate error messages
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 10 06:03:00 +0000 1999
>Closed-Date: Wed Nov 10 14:53:56 +0000 1999
>Last-Modified: Wed Nov 10 14:54:26 +0000 1999
>Originator: Johan Danielsson
>Release: 1999-11-10
>Organization:
>Environment:
<machine, os, target, libraries (multiple lines)>
System: NetBSD blubb.pdc.kth.se 1.4M NetBSD 1.4M (BLUBB) #88: Tue Nov 9 20:40:15 CET 1999 joda@blubb.pdc.kth.se:/usr/misc/src/netbsd/anoncvs/src/sys/arch/i386/compile/BLUBB i386
>Description:
>How-To-Repeat:
$ sort +x /dev/null 2>&1 | od -c
0000000 i n v a l i d f i e l d s p
0000020 e c i f i c a t i o n ` + x '
0000040
>Fix:
--- sort.c 1996/03/21 18:35:47 1.7
+++ sort.c 1999/11/10 13:59:08
@@ -1857,6 +1857,7 @@
if (e)
fprintf(stderr,"error %d:", e);
fprintf(stderr, s, s1);
+ fprintf(stderr, "\n");
if (n)
exit(n);
}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: hubertf
State-Changed-When: Wed Nov 10 06:53:56 PST 1999
State-Changed-Why:
Patch applied. Thanks!
- Hubert
From: Christoph Badura <bad@oreilly.de>
To: joda@pdc.kth.se
Cc: gnats-bugs@netbsd.org
Subject: Re: bin/8773: sort doesn't newline terminate error messages
Date: Wed, 10 Nov 1999 16:12:49 +0100 (MET)
joda@pdc.kth.se (Johan Danielsson) writes:
>+ fprintf(stderr, "\n");
I assume you mean ``putc('\n', stderr)''.
--
Christoph Badura www.netbsd.org
Anything that can be done in O(N) can be done in O(N^2).
-- Ralf Schuettau (after looking at a particular piece of code)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.