summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.c b/process.c
index d4f090f9a4..eb0c3a2a3c 100644
--- a/process.c
+++ b/process.c
@@ -1830,7 +1830,7 @@ rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, str
e->invoke.cmd.argv_buf = argv_buf;
}
- if (e->invoke.cmd.argv_buf) {
+ if (!e->use_shell) {
char *p, *ep, *null=NULL;
VALUE argv_str;
argv_str = hide_obj(rb_str_buf_new(sizeof(char*) * (argc + 2)));