NetBSD Problem Report #40598

From www@NetBSD.org  Tue Feb 10 01:58:29 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 1EAC263B867
	for <gnats-bugs@gnats.netbsd.org>; Tue, 10 Feb 2009 01:58:29 +0000 (UTC)
Message-Id: <20090210015828.D1E3E63B400@narn.NetBSD.org>
Date: Tue, 10 Feb 2009 01:58:28 +0000 (UTC)
From: nis@nii.ac.jp
Reply-To: nis@nii.ac.jp
To: gnats-bugs@NetBSD.org
Subject: nvi catches SIGTSTP instead of ^Z character
X-Send-Pr-Version: www-1.0

>Number:         40598
>Category:       bin
>Synopsis:       nvi catches SIGTSTP instead of ^Z character
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 10 02:00:00 +0000 2009
>Originator:     Shingo NISHIOKA
>Release:        NetBSD 5.0_RC1
>Organization:
NII
>Environment:
System: NetBSD mir.cs.nii.ac.jp 5.0_RC1 NetBSD 5.0_RC1 (S) #0: Tue Feb 3 21:58:3
6 JST 2009 nis@mir.cs.nii.ac.jp:/usr/obj/sys/arch/i386/compile/S i386
Architecture: i386
Machine: i386

/usr/bin/vi:
        -lc.12 => /usr/lib/libc.so.12
        -lcurses.6 => /usr/lib/libcurses.so.6

Version nvi-1.81.6nb1 (2007-11-18) The CSRG, University of California,
Berkeley.

no .nexrc nor .exrc

TERM=xterm
SHELL=/bin/ksh
LANG=C
LC_* -- unset

>Description:
nvi catches SIGTSTP instead of ^Z character.  Useally, nvi cleanups
the screen before suspending itself.  In this case, nvi is suspended
immediately, and the screen will be left untidy.  Once this problem
comes up, nvi stays in this mode, until it exits or it receives
SIGWINCH.

The same problem exists in nvi-1.79-m17n (from pkgsrc) compiled on
4.0_STABLE, but the same code compiled on Darwin Kernel Version
9.6.0 (MacOS X Leopard) seems to be immuned from this problem.

Some code reset c_cc[VSUSP] which was set to be _POSIX_VDISABLE at
cl_screen.c:351?

>How-To-Repeat:
Start vi with no arguments, then try to edit a noexisting
file `*nonexistent', with a meta character (thus, expansion fails).

The following keystroke rises this problem:
vi<CR>
:e *nonexistent<CR>
^Z

>Fix:
Unkown.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.