From: Nobuhiro IMAI Date: 2007-05-29T04:40:54+09:00 Subject: [ruby-list:43576] ruby -v/--verbose いまいです。 man の問題だけかなとも思うのですが、 SYNOPSIS ruby [--copyright] [--version] [-Sacdlnpswvy] [-0[octal]] [-C directory] [-F pattern] [-I directory] [-K c] [-T[level]] [-e command] [-i[extension]] [-r library] [-x[directory]] [--] [program_file] [argument ...] に --verbose がないのと、 OPTIONS -v --verbose Enables verbose mode. Ruby will print its version at the beginning, and set the variable $VERBOSE to true. Some methods print extra messages if this variable is true. If this switch is given, and no other switches are present, Ruby quits after printing its version. # 文ごとに改行してます。 $ ./ruby -v ruby 1.8.6 (2007-05-23 patchlevel 27) [i686-linux] # OK $ ./ruby --verbose # 最後の文からすると、バージョンが出るはず? $ ./ruby -v -e 'p $VERBOSE' ruby 1.8.6 (2007-05-23 patchlevel 27) [i686-linux] true # OK $ ./ruby --verbose -e 'p $VERBOSE' true # 2 文目からすると、最初にバージョンが出るはず? というわけで、バージョンの表示について -v と --verbose の挙動が違うよ うです。たぶん trunk でも同じ挙動で、ruby.1 も同じもののようです。 -- Nobuhiro IMAI Key fingerprint = F39E D552 545D 7C64 D690 F644 5A15 746C BD8E 7106