diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-08 16:13:26 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-08 16:13:26 +0000 |
commit | b9824fbb0817da6ebc6b34c12c6be3373a8d4af4 (patch) | |
tree | cddc2f7641eee4c99b429c306ba97c9dac1daff2 /process.c | |
parent | 795c5f9b40e9b7ad35368a6a86c9c310a6c9a2d8 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |