awk bug? (+ small question about nc and shell size)
Denys Vlasenko
vda.linux at googlemail.com
Sun Jan 25 00:59:21 UTC 2009
On Saturday 24 January 2009 21:56, Peter Renzland wrote:
> [Busybox v1.12.3, Netfilter v1.3.7, Tomato 1.23, Linux 2.4.20,
> embedded in a WRT54GL router]
>
> === awk ===
>
> I wonder whether the following awk bug is more widespread than my my
> particular implementation:
>
> The following program:
>
> awk '
> BEGIN {
> print "NF:" NF ":"
> print "$0:" $0 ":"
> print "$1:" $1 ":"
> print "$2:" $2 ":"
> }
> '
>
> prints:
>
> NF:1:
> $0:0:
> $1:0:
> $2::
>
> instead of:
>
> NF:0:
> $0::
> $1::
> $2::
Try attached patch.
> === nc and shell size ===
>
> I wonder if adding "-l" to the capability of nc would increase the
> executable size by much.
?!! nc already has -l option supported.
> Similarly with adding job control to the shell.
Same comment applies here.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.patch
Type: text/x-diff
Size: 2484 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20090125/406450b7/attachment.bin
More information about the busybox
mailing list