作者: Zazel
日時: 2009/3/04(22:59)
Zazelです。

=== saw@...-nokuchi2pho.ne.jp (Yさ) さんが書かれた
=== <20090304130619.02FF61000004@...> にて

> > 例によって、STATUS.awkで勝負をしようとしたのですが、文字を入力しても、A
> > とZ以外の文字はヒントが出ません。
...snip...
> ※バージョン違い、なのかな?
> >空文字列であれば、個々のキャラクタが配列の要素となるように分割がおこなわれる(これはgawk特有の拡張である)

http://www.faqs.org/faqs/computer-lang/awk/faq/ によると

| 18. How can I split a string into characters?
| 
| in portable POSIX awk, the only way to do this is to use substr to pull
| out each character, one by one.  this is painful.  however, gawk, mawk,
| and the newest version of the Bell Labs awk all allow you to set
| FS = "" and use "" as the third argument of split.

ということで、Solaris 10のnawkのマニュアルにも「結果は未定義」と
書いてあります。

(* SEKI Masatoshi  /  zazel.ts@..."cx"           *)
(*  Would you hold my hand? Softly, let's linger. *)