From yasuf@big.or.jp Thu Apr  1 10:49:10 1999
Return-Path: <yasuf@big.or.jp>
Received: from smtp.teleway.ne.jp (smtp.teleway.ne.jp [203.140.129.13])
	by hub.freebsd.org (Postfix) with ESMTP id 5A0CE15D34
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  1 Apr 1999 10:49:05 -0800 (PST)
	(envelope-from yasuf@big.or.jp)
Received: from post1a.po.teleway.ne.jp (post1a.teleway.ne.jp [203.140.129.22])
	by smtp.teleway.ne.jp (8.8.8/3.7W) with ESMTP id DAA01939
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 2 Apr 1999 03:48:46 +0900 (JST)
	(envelope-from yasuf@big.or.jp)
Received: from localhost ([210.234.51.18]) by post1a.po.teleway.ne.jp
          (Post.Office MTA v3.0 release "turbo_2"
          ID# 110-55583U50000L50000S0V35) with ESMTP id AAA22301
          for <FreeBSD-gnats-submit@freebsd.org>;
          Fri, 2 Apr 1999 03:48:45 +0900
Message-Id: <19990402034844J.yasuf@big.or.jp>
Date: Fri, 02 Apr 1999 03:48:44 +0900
From: yasuf@big.or.jp
Reply-To: yasuf@big.or.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: send-pr doesn't work
X-Send-Pr-Version: 3.2

>Number:         10909
>Category:       bin
>Synopsis:       /usr/bin/send-pr doesn't work
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr  1 10:50:00 PST 1999
>Closed-Date:    Thu Apr 1 11:44:52 PST 1999
>Last-Modified:  Thu Apr  1 11:45:06 PST 1999
>Originator:     Yasuhiro Fukuma
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

  $ uname -a
  FreeBSD smoove.ouchi-net.jp 4.0-CURRENT FreeBSD 4.0-CURRENT #1: Tue Mar 30 20:47:30 JST 1999     root@smoove.ouchi-net.jp:/usr/src/sys/compile/ARMADILLO  i386
  $ ident /usr/bin/send-pr | grep Id
       $Id: send-pr.sh,v 1.10 1999/03/24 17:06:47 steve Exp $

>Description:

After I filled out the send-pr form, send-pr complained as follows:

| sed: 1: ">Category:/{
| s|||
| s|<.* ...": invalid command code >
| send-pr: you must include a Category: field in your report.
| Errors were found with the problem report.
| a)bort, e)dit or s)end? 

>How-To-Repeat:

Run send-pr, fill out the form, then leave the editor.

>Fix:

The following patch will solve the problem:

Index: send-pr.sh
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/send-pr/send-pr.sh,v
retrieving revision 1.10
diff -u -r1.10 send-pr.sh
--- send-pr.sh	1999/03/24 17:06:47	1.10
+++ send-pr.sh	1999/04/01 18:23:09
@@ -430,7 +430,7 @@
   # 4) Category
   #
   PATTERN=">Category:"
-  CATEGORY=`eval sed -n -e "\"$PATTERN/$SED_CMD\"" $TEMP`
+  CATEGORY=`eval sed -n -e "\"/$PATTERN/$SED_CMD\"" $TEMP`
   FOUND=
   for C in $CATEGORIES
   do

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Thu Apr 1 11:44:52 PST 1999 
State-Changed-Why:  
Patch committed, thanks! 
>Unformatted:
