diff --git a/ChangeLog b/ChangeLog index 1da6db1df1..f9ffef5ad6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jun 4 00:11:51 2012 Tanaka Akira + + * process.c (rb_proc_exec_e): don't use ISSPACE(). \f, \r and \v + are not word separator in Bourne shell. + Sun Jun 3 23:47:30 2012 Tanaka Akira * include/ruby/intern.h (rb_exec_arg): remove argc and argv fields. diff --git a/process.c b/process.c index 7851af164d..722756fc8c 100644 --- a/process.c +++ b/process.c @@ -1146,7 +1146,7 @@ rb_proc_exec_e(const char *str, VALUE envp_str) static int rb_proc_exec_e(const char *str, VALUE envp_str) { - while (*str && ISSPACE(*str)) + while (*str == ' ' || *str == '\t' || *str == '\n') str++; if (!*str) {