作者: KIMURA Koichi
日時: 2009/3/05(01:21)
Bruce.です。

どうも不思議時空に囚われていたようです。

> ...あれ?(^^;
> 
> http://www.linux.or.jp/JM/html/GNU_gawk/man1/gawk.1.html#lbBD
>> gawk が持つ以下の機能は POSIX awk では使用できません。
>> ・FS に空文字列を設定することにより各文字を切り出す能力と、split() の 3 番目の引数。
> 
> http://www.gnu.org/manual/gawk/html_node/POSIX_002fGNU.html
>> Extensions in gawk Not in POSIX awk
>> Version 3.0 of gawk introduced the following features:
>> ・The ability for FS and for the third argument to split to be null strings
> 
> なのでは?
> 
"split(s, a[,fs])
    Split the string s into array elements a [1], a [2], ... a [ n and return n . The separation will be done with the
extended regular expression fs or with the field separator FS if fs is not given. Each array element will have a string
value when created. If the string assigned to any array element, with any occurrence of the decimal-point character from
the current locale changed to a period character, would be considered a numeric string (see Expressions in awk ), the
array element will also have the numeric value of the numeric string . The effect of a null string as the value of fs is
unspecified. "
http://www.opengroup.org/onlinepubs/007908799/xcu/awk.html


でも Solarist の /bin/awk が××なのは確か。
nawkはまともだけど。

-- 
木村浩一
  I thought what I'd do was, I'd pretend I was one of those deaf-mutes or should I?
  mail kbk [at] kt.rim.or.jp
        web  www.kt.rim.or.jp/~kbk/zakkicho/
             homepage3.nifty.com/farstar/