NetBSD Problem Report #41954

From asau@inbox.ru  Fri Aug 28 18:03:23 2009
Return-Path: <asau@inbox.ru>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 5AEA063B121
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 28 Aug 2009 18:03:23 +0000 (UTC)
Message-Id: <87hbvrstnf.fsf@inbox.ru>
Date: Fri, 28 Aug 2009 22:03:16 +0400
From: Aleksej Saushev <asau@inbox.ru>
To: gnats-bugs@gnats.NetBSD.org
Subject: "sh -i" regressed in 5.99

>Number:         41954
>Category:       bin
>Synopsis:       "sh -i" regressed in 5.99
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 28 18:05:00 +0000 2009
>Closed-Date:    Sat Dec 29 09:55:29 +0000 2018
>Last-Modified:  Sat Dec 29 09:55:29 +0000 2018
>Originator:     Aleksej Saushev
>Release:        NetBSD 5.99.15
>Organization:
>Environment:
System: NetBSD asau.local 5.99.15 NetBSD 5.99.15 (KERN) #0: Tue Aug 25 12:45:55 MSD 2009 asau@asau.local:/tmp/obj/sys/arch/i386/compile/KERN i386
Architecture: i386
Machine: i386
>Description:
	"sh -i" behaviour changed somewhere in between 5.0 release and today,
	Emacs shell-mode doesn't function now.

	Problem occured first after userland update from one of early 5.0 stable
	snapshots to 5.99.15.
>How-To-Repeat:
	In GNU Emacs 23.1: start shell ("M-x shell <CR>"),
	press <CR> in new buffer, see the shell process exit:
	"Process shell finished".
	Same happens when you try running commands.

	Change shell used for inferior shell:
	M-: (setq explicit-shell-file-name "/bin/ksh")
	Run shell: M-x shell. Try entering commands. See how they run.

	Repeat with /usr/pkg/bin/bash. Note its behaviour is consistent with ksh's.
>Fix:
	Use ksh as workaround, call (setq explicit-shell-file-name "/bin/ksh")
	in .emacs

>Release-Note:

>Audit-Trail:
From: Aleksej Saushev <asau@inbox.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/41954: "sh -i" regressed in 5.99
Date: Sat, 29 Aug 2009 01:36:21 +0400

 The following information may be of some interest:
 when I configure Emacs to start "sh +i" instead of "sh -i",
 the inferior shell starts. Though it doesn't print prompts
 and possibly doesn't do other things unavailable in
 non-interactive mode. To start shell in non-interactive mode,

 (setq explicit-shell-file-name "/bin/sh")
 (setq explicit-sh-args '("+i"))

 Another interesting point, found during conversation to dholland:
 fstat shows that no process uses ptyfs, all of them open classic
 ttyp*/ptyp* pairs.

From: Aleksej Saushev <asau@inbox.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/41954: "sh -i" regressed in 5.99
Date: Wed, 28 Oct 2009 00:09:22 +0300

 Aleksej Saushev <asau@inbox.ru> writes:

 >  The following information may be of some interest:
 >  when I configure Emacs to start "sh +i" instead of "sh -i",
 >  the inferior shell starts.

 Another data point: I see same symptoms while working with gnuplot,
 which suggests bug in library rather than the shell itself.
 This library may be editline or termcap:

 /bin/sh:
 	-lc.12 => /lib/libc.so.12
 	-ltermcap.0 => /lib/libtermcap.so.0
 	-ledit.3 => /lib/libedit.so.3
 /bin/ksh:
 	-lc.12 => /lib/libc.so.12

 ksh works correctly here, and "sh +i" possibly avoids problematic functions.


 -- 
 HE CE3OH...

State-Changed-From-To: open->feedback
State-Changed-By: kre@NetBSD.org
State-Changed-When: Thu, 16 Aug 2018 11:46:45 +0000
State-Changed-Why:
It seems as if sometime in the past 9 years, either this issue
was addressed, and the PR was simply ignored, or other changes
for other reasons have caused this issue to be fixed.

In any case, the problem in the PR has been reported to be no
longer an issue.  Can you confirm?

Any NetBSD 8 (including beta and RC versions) or NetBSD HEAD
/bin/sh should work, we believe (and perhaps earlier).

Thanks, and apologies that no-one go around to doing anything
with this PR (unless they did!) for so long.


State-Changed-From-To: feedback->closed
State-Changed-By: kre@NetBSD.org
State-Changed-When: Sat, 29 Dec 2018 09:55:29 +0000
State-Changed-Why:
feedback timeout and problem believed fixed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.