process.c: fix array element size
* process.c (rb_exec_fillarg): fix array element size. "continue" and "readonly" exceeded the size. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2d460925f2
commit
33b15cef6c
@ -1,4 +1,7 @@
|
|||||||
Wed Jun 13 09:56:29 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed Jun 13 10:20:03 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* process.c (rb_exec_fillarg): fix array element size. "continue" and
|
||||||
|
"readonly" exceeded the size.
|
||||||
|
|
||||||
* process.c (rb_exec_fillarg): use shell if the first word is reserved
|
* process.c (rb_exec_fillarg): use shell if the first word is reserved
|
||||||
or special built-in name.
|
or special built-in name.
|
||||||
|
@ -1866,7 +1866,7 @@ rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, str
|
|||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
if (e->use_shell) {
|
if (e->use_shell) {
|
||||||
static const char posix_sh_cmds[][8] = {
|
static const char posix_sh_cmds[][9] = {
|
||||||
"!", /* reserved */
|
"!", /* reserved */
|
||||||
".", /* special built-in */
|
".", /* special built-in */
|
||||||
"break", /* special built-in */
|
"break", /* special built-in */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user