summaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-03 23:37:12 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-03 23:37:12 +0100
commit197c6b7da3ad4c3e3942a553f5dbc35722a4a349 (patch)
treef4369612e764bf0ba88fcac151d3d43bb866dd06 /src/os_unix.c
parent30efcf3d26bd14af71cd306c4c5f9e789a7130c9 (diff)
downloadvim-git-197c6b7da3ad4c3e3942a553f5dbc35722a4a349.tar.gz
patch 8.1.2251: ":term command" may not work without a shellv8.1.2251
Problem: ":term command" may not work without a shell. Solution: Add the ++shell option to :term. (closes #3340)
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index e8fe90a1c..6fa070274 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -4299,10 +4299,10 @@ may_send_sigint(int c UNUSED, pid_t pid UNUSED, pid_t wpid UNUSED)
# endif
}
-#if !defined(USE_SYSTEM) || (defined(FEAT_GUI) && defined(FEAT_TERMINAL))
+#if !defined(USE_SYSTEM) || defined(FEAT_TERMINAL) || defined(PROTO)
- static int
-build_argv(
+ int
+unix_build_argv(
char_u *cmd,
char ***argvp,
char_u **sh_tofree,
@@ -4369,7 +4369,7 @@ mch_call_shell_terminal(
aco_save_T aco;
oparg_T oa; /* operator arguments */
- if (build_argv(cmd, &argv, &tofree1, &tofree2) == FAIL)
+ if (unix_build_argv(cmd, &argv, &tofree1, &tofree2) == FAIL)
goto theend;
init_job_options(&opt);
@@ -4546,7 +4546,7 @@ mch_call_shell_fork(
if (options & SHELL_COOKED)
settmode(TMODE_COOK); /* set to normal mode */
- if (build_argv(cmd, &argv, &tofree1, &tofree2) == FAIL)
+ if (unix_build_argv(cmd, &argv, &tofree1, &tofree2) == FAIL)
goto error;
/*