2003年10月12日(日)

case sensitive

某IBMのC++コンパイラ、 C++ と C で実行コマンドが違うのはよくある話だが、こいつはコマンド名が xlC と xlc で挙動を切り替えている。
それはまぁありそうな話なのでなんとも思わなかったんだが、今日になって急に気が付いた。このファイルシステム case insensitive だから xlC と xlc の区別ないじゃん。
調べてみると bin ディレクトリには xlc しかない。 case insensitive ってことは、こいつが xlC でも XLc でも実行されるってことだ。
簡単な shell script 書いて試してみたが argv[0] には、ちゃんと case sensitive なのが渡ってる。まぁ、当たり前っちゃあ当たり前なんだがなんか気になる挙動だな。

[referer:

Script Error

The script did not produce proper HTTP headers. Please see the error log to see the detail of the errors. Depending on the server configuration, you can also run thisscript under CGIWrap debugging. Usually, either rename or linkthe script temporarily to a file which ends with .cgidextension, or add a AddHandler cgi-script-debug .cgiline to your .htaccess file.

]

あわせて読みたい