Hello World!

C の教科書の最初に出てくるサンプルプログラム。これの GNU 版があるのをはじめて知りました。

vine-users の ML でその URL(ftp://ftp.gnu.org/gnu/hello/hello-2.1.1.tar.gz)を記したメールが流れたんだけど、実際にダウンロードして configure & make してみました。

コマンドラインオプションもあって、


GNU hello, THE greeting printing program.

Usage: ./hello [OPTION]

-h, --help display this help and exit
-v, --version display version information and exit

-t, --traditional use traditional greeting format
-n, --next-generation use next-generation greeting format
-m, --mail print your mail

Report bugs to .

だそうです。何もオプションを付けない時、-t を指定したとき、-n を指定した時の表示の違いがうけてしまった(^^;