summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-30 07:08:56 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-30 07:08:56 +0000
commit029e9449ce7fa4710eac7a66e605afb3dc8a99ce (patch)
tree720de2cc507ec208d7390899d757cf7d45d4ddbb /ruby.c
parentc9b177327d20863d67120eb884d2ac56d0a1dbd2 (diff)
* ruby.c (proc_options): -F set compiled regular expression to $;.
[ruby-talk:77381] * string.c (Init_String): no setter type check for $; git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 3975580..344007b 100644
--- a/ruby.c
+++ b/ruby.c
@@ -589,7 +589,7 @@ proc_options(argc, argv)
case 'F':
if (*++s) {
- rb_fs = rb_str_new2(s);
+ rb_fs = rb_reg_new(s, strlen(s), 0);
}
break;