ports/99424: [PATCH] MC's subshell doesn't work with stock freebsd csh

Stanislav Sedov ssedov at mbsd.msk.ru
Sat Jun 24 15:40:26 UTC 2006


>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 at 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:



More information about the freebsd-ports-bugs mailing list