Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Apr 1999 03:48:44 +0900
From:      yasuf@big.or.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/10909: send-pr doesn't work
Message-ID:  <19990402034844J.yasuf@big.or.jp>

next in thread | raw e-mail | index | archive | help

>Number:         10909
>Category:       bin
>Synopsis:       /usr/bin/send-pr doesn't work
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr  1 10:50:00 PST 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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