Thomas Dickey (dic...@his.com) wrote on 10 August 2010 20:20: >On Tue, 10 Aug 2010, Thomas Dickey wrote: > >> On Tue, 10 Aug 2010, Carlos Carvalho wrote: >> >>> mawk cannot handle records separated by nulls, such as for example the >>> ones generated by find. Only the first record is handled: >>> >>> % mkdir mawk-fails >>> % cd mawk-fails >>> %mawk-fails touch a b c >>> %mawk-fails find -printf "%p\0"|mawk 'BEGIN {RS="\0"} {print}' >>> .. >> >> It works with upstream mawk (just tested mawk-1.3.4-20100625). >> >> This is a duplicate of #135614
There your say that processing nulls is a gawk extension. However I don't see it in the list of extensions of gawk manpage. It mentions only the ability to split a string with the null string. Further, the null string is not "\0". >...however, #355966 is unrelated to this additional report about embedded >nulls. It's related to RS, which is where I stumbled on the nulls. Anyway, it'd be quite useful to have this in Debian. mawk is a lot faster than gawk... -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org