1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* process.c (rb_proc_exec_e): don't use ISSPACE(). \f, \r and \v

are not word separator in Bourne shell.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2012-06-03 15:13:54 +00:00
parent 9ee4575ea4
commit 93e005d177
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Jun 4 00:11:51 2012 Tanaka Akira <akr@fsij.org>
* 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 <akr@fsij.org>
* include/ruby/intern.h (rb_exec_arg): remove argc and argv fields.

View file

@ -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) {