awk bug? (+ small question about nc and shell size)

Peter Renzland peter at dancing.org
Sat Jan 24 20:56:34 UTC 2009


[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::

=== nc and shell size ===

I wonder if adding "-l" to the capability of nc would increase the  
executable size by much.
Similarly with adding job control to the shell.

Thanks.
Peter

[Busybox v1.12.3, Netfilter v1.3.7, Tomato 1.23, Linux 2.4.20,  
embedded in a WRT54GL router]


More information about the busybox mailing list