NetBSD Problem Report #730

From gnats  Fri Jan 13 11:42:03 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id LAA05504 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Fri, 13 Jan 1995 11:42:01 -0800
Message-Id: <199501131945.OAA06856@jfwhome.funhouse.com>
Date: Fri, 13 Jan 1995 14:45:18 -0500
From: "John F. Woods" <jfw@jfwhome.funhouse.com>
Reply-To: jfw@jfwhome.funhouse.com
To: gnats-bugs@NetBSD.ORG
Subject: ed 1,$s/a/b/p command prints wrong line.
X-Send-Pr-Version: 3.2

>Number:         730
>Category:       bin
>Synopsis:       ed 1,$s/a/b/p command prints wrong line.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 13 11:50:02 +0000 1995
>Closed-Date:    Sun Jan 15 06:21:45 +0000 1995
>Last-Modified:  
>Originator:     John F. Woods
>Release:        NetBSD-current January 1 1995
>Organization:
Misanthropes-R-Us
>Environment:

System: NetBSD jfwhome.funhouse.com 1.0A NetBSD 1.0A (JFW) #14: Wed Jan 4 22:53:11 EST 1995 root@jfwhome.funhouse.com:/usr/src/sys/arch/i386/compile/JFW i386


>Description:
The substitute command in ed, when operating on multiple lines, ends on the wrong line;
it should put the current line on the last line changes, not the last line of the range.
>How-To-Repeat:
Take any file, do a successful 1,$s/something/somethingelse/p operation, where
something is not found on the last line.  Note that it prints the last line, rather
than the last changed line.
>Fix:
I'll look into it later, if no one else does.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mycroft 
State-Changed-When: Sat Jan 14 22:21:45 PST 1995 
State-Changed-Why:  
Fixed (by Andrew). 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.