summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-03 15:13:54 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-03 15:13:54 +0000
commit93e005d177bfbf82d7b8b8c3eedc0993f698edd6 (patch)
treed0667497fff1a8745f69b6f93546bdbfcf6d14eb /process.c
parent9ee4575ea418992d3a03eb7065d31159bb51fb72 (diff)
* 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
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
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) {