зеркало из https://github.com/github/ruby.git
* 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:
Родитель
9ee4575ea4
Коммит
93e005d177
|
@ -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.
|
||||
|
|
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче