summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-08 16:13:26 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-08 16:13:26 +0000
commitb9824fbb0817da6ebc6b34c12c6be3373a8d4af4 (patch)
treecddc2f7641eee4c99b429c306ba97c9dac1daff2 /process.c
parent795c5f9b40e9b7ad35368a6a86c9c310a6c9a2d8 (diff)
* include/ruby/intern.h (rb_exec_arg_init): declaration changed to
return a value. * process.c (rb_exec_arg_init): return a value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/process.c b/process.c
index 491366f2b3..2e7b31f2a3 100644
--- a/process.c
+++ b/process.c
@@ -1850,13 +1850,14 @@ rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, str
}
}
-void
+VALUE
rb_exec_arg_init(int argc, VALUE *argv, int accept_shell, struct rb_exec_arg *e)
{
VALUE prog;
VALUE env = Qnil, opthash = Qnil;
prog = rb_exec_getargs(&argc, &argv, accept_shell, &env, &opthash);
rb_exec_fillarg(prog, argc, argv, env, opthash, e);
+ return e->use_shell ? e->invoke.sh.shell_script : e->invoke.cmd.command_name;
}
static int