Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jun 2006 19:32:34 +0400 (MSD)
From:      Stanislav Sedov <ssedov@mbsd.msk.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        fjoe@FreeBSD.org
Subject:   ports/99424: [PATCH] MC's subshell doesn't work with stock freebsd csh
Message-ID:  <200606241532.k5OFWYWj084426@fonon.realnet>
Resent-Message-ID: <200606241540.k5OFeP1Z071519@freefall.freebsd.org>

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

>Number:         99424
>Category:       ports
>Synopsis:       [PATCH] MC's subshell doesn't work with stock freebsd csh
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 24 15:40:24 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Stanislav Sedov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
MBSD labs, Inc.
>Environment:
System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #7: Sun Jun 18 20:51:36 MSD 2006 root@fonon.realnet:/work/src/fbsd-cur/src/sys/i386/compile/FONON i386


	
>Description:
	Subshell in the Midnight commander doesn't work with FreeBSD's
	stock csh, since MC thinks, that it doesn't Tcsh.

	The patch, I've added, allows using subshell even if user's
	shell set to /bin/csh.

	NOTE: additional file files/patch-src-subshell.c was added.

	The copy of the message was sent to maintainier.
>How-To-Repeat:
	
>Fix:

	

--- mc.diff begins here ---
diff -ruN mc.orig/files/patch-src-subshell.c mc/files/patch-src-subshell.c
--- mc.orig/files/patch-src-subshell.c	Sat Jun 24 19:25:35 2006
+++ mc/files/patch-src-subshell.c	Thu Jan  1 03:00:00 1970
@@ -1,11 +0,0 @@
---- src/subshell.c.orig	Wed Jun 14 15:45:12 2006
-+++ src/subshell.c	Wed Jun 14 15:45:39 2006
-@@ -395,6 +395,8 @@
- 	    subshell_type = ZSH;
- 	else if (strstr (shell, "/tcsh"))
- 	    subshell_type = TCSH;
-+	else if (strstr (shell, "/csh"))
-+	    subshell_type = TCSH;
- 	else if (strstr (shell, "/bash") || getenv ("BASH"))
- 	    subshell_type = BASH;
- 	else {
--- mc.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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