* ruby.c (proc_options): ignore trailing CRs at the end of short
options as well as long options. fixed: [ruby-core:04232] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e1e5eda547
commit
378f74227e
@ -1,3 +1,8 @@
|
|||||||
|
Sat Jan 15 14:57:22 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ruby.c (proc_options): ignore trailing CRs at the end of short
|
||||||
|
options as well as long options. fixed: [ruby-core:04232]
|
||||||
|
|
||||||
Sat Jan 15 13:44:22 2005 Kouhei Sutou <kou@cozmixng.org>
|
Sat Jan 15 13:44:22 2005 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
* lib/rss/rss.rb (RSS::VERSION): 0.1.2 -> 0.1.3.
|
* lib/rss/rss.rb (RSS::VERSION): 0.1.2 -> 0.1.3.
|
||||||
|
15
ruby.c
15
ruby.c
@ -683,9 +683,20 @@ proc_options(argc, argv)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case '\r':
|
||||||
|
if (!s[1]) break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "%s: invalid option -%c (-h will show valid options)\n",
|
{
|
||||||
origargv[0], *s);
|
const char *format;
|
||||||
|
if (ISPRINT(*s)) {
|
||||||
|
format = "%s: invalid option -%c (-h will show valid options)\n";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
format = "%s: invalid option -\\%03o (-h will show valid options)\n";
|
||||||
|
}
|
||||||
|
fprintf(stderr, format, origargv[0], (int)(unsigned char)*s);
|
||||||
|
}
|
||||||
exit(2);
|
exit(2);
|
||||||
|
|
||||||
case 0:
|
case 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user