Print an error message for negative NF values
This commit is contained in:
parent
6315525dbe
commit
179536a516
|
@ -25,3 +25,5 @@ and also if CONVFMT changed.
|
|||
Instead, it should convert the value to numeric and give that value.
|
||||
|
||||
X. nf-self-assign: "NF = NF" wouldn't force the record to be rebuilt.
|
||||
|
||||
X. negative-nf: Setting NF to a negative value caused a segmentation fault.
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
BEGIN { NF = -5; }
|
|
@ -0,0 +1,2 @@
|
|||
./a.out: cannot set NF to a negative value
|
||||
source line number 1
|
Loading…
Reference in New Issue