2003-04-03
@ 花見
土曜日はやっぱり雨か...中止かな。
@ Apache-2.0.45
けっこうやばい脆弱性があったらしいので、アップデート。
@ 英語の読み方
この業界にいると、sudoとかcronとか、変な読み方(?)の単語にいっぱい出くわする。たとえば、Maildirは「メイルディル」ってずっと読んでたけど、今の職場の人は「メイルディア」って発音してた。dirはdirectoryなんだから「ディル」って発音した方がわかりやすいような気がするけど。ちなみに「クーロン」と聞くと九龍という漢字を思い浮かべてしまうのは自分だけだろうか...
本日のツッコミ(全2件) [ツッコミを入れる]
2004-04-03
@ [ruby] ruby-1.8.1 and optparse-0.12
exerbを使いたかったので、Rubyを1.6.7 -> 1.8.1にしたら、optparse*1でこんな警告が。
./optparse.rb:1001: warning: character class has `]' without escape ./optparse.rb:1001: warning: character class has `[' without escape ./optparse.rb:1011: warning: character class has `]' without escape ./optparse.rb:1011: warning: character class has `[' without escape ./optparse.rb:1023: warning: character class has `]' without escape
とりあえず下記のパッチを当てて回避したところで、
1.8.1からoptparse抜き出してくりゃよかった
ことに気付く。まぁいいか。
--- optparse.rb.orig 2004-04-03 21:46:09.000000000 +0900
+++ optparse.rb 2004-04-03 22:38:36.000000000 +0900
@@ -998,7 +998,7 @@
raise ArgumentError, "unsupported argument type: #{o}"
when *ArgumentStyle.keys
style = notwice(ArgumentStyle[o], style, 'style')
- when /^--no-([^][=\s]*)(.+)?/
+ when /^--no-([^\]][=\s]*)(.+)?/
q, a = $1, $2
o = notwice(a ? Object : TrueClass, klass, 'type')
not_pattern, not_conv = search(:atype, o) unless not_style
@@ -1008,7 +1008,7 @@
ldesc << "--no-#{q}"
long << 'no-' + (q = q.downcase)
nolong << q
- when /^--\[no-\]([^][=\s]*)(.+)?/
+ when /^--\[no-\]([^\]][=\s]*)(.+)?/
q, a = $1, $2
o = notwice(a ? Object : TrueClass, klass, 'type')
if a
@@ -1020,7 +1020,7 @@
not_pattern, not_conv = search(:atype, FalseClass) unless not_style
not_style = Switch::NoArgument
nolong << 'no-' + o
- when /^--([^][=\s]*)(.+)?/
+ when /^--([^\]][=\s]*)(.+)?/
q, a = $1, $2
if a
o = notwice(NilClass, klass, 'type')
*1 1.8.1同梱のやつではない
[ツッコミを入れる]
# まことす [sudo(エスユードゥー)、cron(クロン)、Maildir(メイルディア)、Cactus(カクタス)、ORO(オ..]
# おいぬめ [sudoは「スゥードゥー」って発音してます。これ以上言うと無意味な宗教戦争になりそうなので、やめておきます(w pa..]