summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--process.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 56363e38f4..687b4972d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jun 12 06:40:23 2012 Tanaka Akira <akr@fsij.org>
+
+ * process.c (rb_exec_fillarg): detect '#' as a meta character.
+
Mon Jun 11 22:15:44 2012 Tanaka Akira <akr@fsij.org>
* include/ruby/intern.h (rb_proc_exec_n): deprecated.
diff --git a/process.c b/process.c
index 9471895c89..7517f4048b 100644
--- a/process.c
+++ b/process.c
@@ -1874,7 +1874,7 @@ rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, str
for (p = RSTRING_PTR(prog); *p; p++) {
if (!has_nonspace && *p != ' ' && *p != '\t')
has_nonspace = 1;
- if (!has_meta && strchr("*?{}[]<>()~&|\\$;'`\"\n", *p))
+ if (!has_meta && strchr("*?{}[]<>()~&|\\$;'`\"\n#", *p))
has_meta = 1;
if (has_nonspace && has_meta)
break;