Subject: bin/25899: sed fails when 2048'th character is a backslash
To: None <gnats-bugs@gnats.NetBSD.org>
From: Min Sik Kim <minskim@NetBSD.org>
List: netbsd-bugs
Date: 06/10/2004 20:04:39
>Number:         25899
>Category:       bin
>Synopsis:       sed fails when 2048'th character is a backslash
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 11 01:06:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Min Sik Kim
>Release:        NetBSD 2.0E
>Organization:
>Environment:
System: NetBSD sulley.infnis.com 2.0E NetBSD 2.0E (SULLEY) #15: Sun May 2 09:11:09 CDT 2004 root@sulley.infnis.com:/usr/obj/sys/arch/i386/compile/SULLEY i386
Architecture: i386
Machine: i386
>Description:
When reading a command from a file using '-f' option, sed fails as
follows if the 2048'th character in a subst command is a backslash.

  % sed -f sedcmd
  sed: 1: sedcmd: \ not defined in the RE

>How-To-Repeat:
Download http://www.NetBSD.org/~minskim/src/test/sedcmd and run:

  % sed -f sedcmd

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: