diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | process.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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. @@ -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; |