NetBSD Problem Report #1777

From gnats  Tue Nov 21 04:15:07 1995
Received: from quartz.clock.org by pain.lcs.mit.edu (8.6.12/8.6.9) with ESMTP id EAA14190 for <gnats-bugs@gnats.netbsd.org>; Tue, 21 Nov 1995 04:01:50 -0500
Message-Id: <199511210901.BAA01071@quartz.clock.org>
Date: Tue, 21 Nov 1995 01:01:31 -0800
From: Erik Fair <fair@quartz.clock.org>
Reply-To: fair@quartz.clock.org
To: gnats-bugs@gnats.netbsd.org
Subject: send-pr invokes /usr/ucb/vi by default which is not there
X-Send-Pr-Version: 3.95

>Number:         1777
>Category:       bin
>Synopsis:       send-pr invokes /usr/ucb/vi by default, which is not there
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 21 04:20:01 +0000 1995
>Closed-Date:    Wed Nov 22 20:51:42 +0000 1995
>Last-Modified:  Thu Nov 23 01:52:01 +0000 1995
>Originator:     Erik Fair
>Release:        NetBSD-current 11/18/95
>Organization:
International Organization of Internet Clock Watchers
>Environment:
	Sun 3/60
	NetBSD-current
System: NetBSD quartz.clock.org 1.1_ALPHA NetBSD 1.1_ALPHA (QUARTZ) #2: Mon Nov 20 16:51:57 PST 1995 fair@quartz.clock.org:/usr/src/sys/arch/sun3/compile/QUARTZ sun3


>Description:
	send-pr fails.

>How-To-Repeat:
	invoke send-pr with no arguments and with no EDITOR
	environment variable set - it fails to invoke /usr/ucb/vi and exits.

>Fix:
	work around: set EDITOR environment variable to valid editor.
	fix: fix the path of the default editor in the send-pr script
>Release-Note:
>Audit-Trail:

From: Daniel Carosone <dan@anarres.mame.mu.oz.au>
To: fair@quartz.clock.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/1777: send-pr invokes /usr/ucb/vi by default which is not there 
Date: Tue, 21 Nov 1995 22:50:18 +1100

 > >Number:         1777
 > >Category:       bin
 > >Synopsis:       send-pr invokes /usr/ucb/vi by default, which is not there
 > 
 > >Description:
 > 	send-pr fails.
 > 
 > >How-To-Repeat:
 > 	invoke send-pr with no arguments and with no EDITOR
 > 	environment variable set - it fails to invoke /usr/ucb/vi and exits.

 Hm. You may be confused, have somehow a different copy of send-pr, or
 something. On my machine, send-pr has the following code:

 # If they don't have a preferred editor set, then use
 if [ -z "$VISUAL" ]; then
   if [ -z "$EDITOR" ]; then
     EDIT=vi
   else
     EDIT="$EDITOR"
   fi
 else
   EDIT="$VISUAL"
 fi

 ... and it certainly invokes vi when I unset those variables.

 Maybe you unset $EDITOR but forgot $VISUAL? maybe something else a
 little strange is going on?  If you figure it out, and it's not me
 being confused, could you drop a short line in reply to the ack you
 got from gnats to say that the PR can be closed?

 Love the host+domain name, btw :)

 --
 Dan.

From: "Erik E. Fair"  (Time Keeper) <fair@clock.org>
To: Daniel Carosone <dan@anarres.mame.mu.oz.au>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/1777: send-pr invokes /usr/ucb/vi by default which is not there
Date: Tue, 21 Nov 1995 10:45:01 -0800

 Mea culpa - my .login was setting EDITOR to /usr/ucb/vi. Now I feel silly;
 I should have looked more closely.

 sorry to waste your time,

 Erik Fair



From: "Arne H. Juul" <arnej@pvv.unit.no>
To: fair@quartz.clock.org, gnats-bugs@gnats.netbsd.org
Cc:  Subject: Re: bin/1777: send-pr invokes /usr/ucb/vi by default which is not there
Date: Tue, 21 Nov 1995 23:19:06 +0100

 this is bogus:

  > >How-To-Repeat:
  > 	invoke send-pr with no arguments and with no EDITOR
  > 	environment variable set - it fails to invoke /usr/ucb/vi and exits.

 skarven:~:(303)$ grep EDIT= /usr/src/gnu/usr.bin/send-pr/send-pr.sh 
     EDIT=vi
     EDIT="$EDITOR"
   EDIT="$VISUAL"

 This is on 1.0; 1.1 is the same.  Are you sure you haven't set VISUAL
 in your environment?

   -  Arne H. J.

State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Wed Nov 22 20:51:42 1995
State-Changed-Why:
User error.

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