Hi Bram and list,

2016-7-16(Sat) 21:48:04 UTC+9 Bram Moolenaar:
> Patch 7.4.2048
> Problem:    There is still code and help for unsupported systems.
> Solution:   Remove the code and text. (Hirohito Higashi)
> Files:      runtime/doc/eval.txt, runtime/lang/menu_sk_sk.vim,
>             runtime/menu.vim, runtime/optwin.vim, src/Make_bc5.mak,
>             src/ex_docmd.c, src/feature.h, src/fileio.c, src/globals.h,
>             src/main.c, src/memfile.c, src/memline.c, src/misc1.c,
>             src/misc2.c, src/option.c, src/option.h, src/os_unix.c,
>             src/os_unix.h, src/proto.h, src/term.c, src/undo.c, src/version.c,
>             src/vim.h, src/xxd/xxd.c

> ***************
> *** 4102,4110 ****
>       int             tmode = cur_tmode;
>   #ifdef USE_SYSTEM   /* use system() to start the shell: simple but slow */
>       int         x;
> - # ifndef __EMX__
> -     char_u  *newcmd;   /* only needed for unix */
> - # else
>       /*
>        * Set the preferred shell in the EMXSHELL environment variable (but
>        * only if it is different from what is already in the environment).
> --- 4071,4076 ----
> ***************
> *** 4125,4131 ****
>           putenv((char *)p);  /* don't free the pointer! */
>       }
>       }
> - # endif

Sorry, I have a mistake.
Avobe modified was wrong.

# ifndef __EMX__
        SECTION_A
# else
        SECTION_B
# endif

I removed SECTION_A. But, It was really SECTION_B such is given should be 
deleted.
I wrote a patch.
Please fix this.

--
Best regards,
Hirohito Higashi (a.k.a. h_east)

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/os_unix.c b/src/os_unix.c
index df39cd3..9e53318 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -4070,27 +4070,7 @@ mch_call_shell(
 #endif
     int		tmode = cur_tmode;
 #ifdef USE_SYSTEM	/* use system() to start the shell: simple but slow */
-    int	    x;
-    /*
-     * Set the preferred shell in the EMXSHELL environment variable (but
-     * only if it is different from what is already in the environment).
-     * Emx then takes care of whether to use "/c" or "-c" in an
-     * intelligent way. Simply pass the whole thing to emx's system() call.
-     * Emx also starts an interactive shell if system() is passed an empty
-     * string.
-     */
-    char_u *p, *old;
-
-    if (((old = (char_u *)getenv("EMXSHELL")) == NULL) || STRCMP(old, p_sh))
-    {
-	/* should check HAVE_SETENV, but I know we don't have it. */
-	p = alloc(10 + strlen(p_sh));
-	if (p)
-	{
-	    sprintf((char *)p, "EMXSHELL=%s", p_sh);
-	    putenv((char *)p);	/* don't free the pointer! */
-	}
-    }
+    char_u	*newcmd;	/* only needed for unix */
 
     out_flush();
 

Raspunde prin e-mail lui