Subject: pkg/37445: editors/nvi-m17n wrapper script error
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <suetake@privatelink.org>
List: pkgsrc-bugs
Date: 11/28/2007 10:30:00
>Number:         37445
>Category:       pkg
>Synopsis:       editors/nvi-m17n wrapper script error
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 28 10:30:00 +0000 2007
>Originator:     Satoshi Suetake
>Release:        4.99.35
>Organization:
>Environment:
NetBSD blackrose.kittymint.org 4.99.35 NetBSD 4.99.35 (BLACKROSE) #69: Thu Nov  8 11:38:02 JST 2007  root@blackrose.kittymint.org:/usr/src/sys/arch/i386/compile/BLACKROSE i386
>Description:
if .nexrc and .exrc don't exist, nvi-m17n reports warning:

  NEXINIT, 1: Usage: so[urce] file

pkg version is nvi-m17n-1.79.20040401nb3

  # pkg_info nvi-m17n
  Information for nvi-m17n-1.79.20040401nb3:

>How-To-Repeat:

>Fix:
# diff -crN nvi-m17n nvi-m17n.new 
*** nvi-m17n    Wed Nov 28 19:20:18 2007
--- nvi-m17n.new        Wed Nov 28 19:20:09 2007
***************
*** 5,11 ****
  elif [ "x$EXINIT" != "x" -a "${EXINIT-UNSET}" != "UNSET" ]; then
        EXINIT1="$EXINIT"
  else
!       ecfile="/dev/null"
        if [ -f "${HOME}/.nexrc" ]; then
                rcfile="$HOME/.nexrc"
        elif [ -f "${HOME}/.exrc" ]; then
--- 5,11 ----
  elif [ "x$EXINIT" != "x" -a "${EXINIT-UNSET}" != "UNSET" ]; then
        EXINIT1="$EXINIT"
  else
!       rcfile="/dev/null"
        if [ -f "${HOME}/.nexrc" ]; then
                rcfile="$HOME/.nexrc"
        elif [ -f "${HOME}/.exrc" ]; then