plan9fox/sys/src
Ori Bernstein 10afa189d5 awk: correct incoherent cell in assignment (thanks smj, mpinjr)
In run.c::assign(), assigning to $0 from $F, a field,
where F >= 2, produces an incoherent cell.

The assignment occurs in two steps, first the string value
and then the float. When the string value is assigned to $0,
setsval invalidates the fields. If FS hasn't changed, after
getfval rebuilds the fields, NF = 1 and F >= 2, therefore $F
is definitely uninitialized. The result is a float val of
0.0, producing a boolean false in the pattern expression.

Coercing a string comparison gives the expected result
because the incoherent cell has the correct string
value, which is not empty and evaluates to true.
2022-06-25 20:03:41 +00:00
..
9 kernel: correct error handling in /srv/clone read 2022-06-22 15:53:32 +00:00
ape ape: fix wrong write size for _assert() 2022-03-14 11:16:11 +00:00
boot generate boot.scr in /sys/src/boot/reform 2022-06-18 18:23:22 +00:00
cmd awk: correct incoherent cell in assignment (thanks smj, mpinjr) 2022-06-25 20:03:41 +00:00
games games/gb: minor style fixes 2022-03-18 17:32:11 -07:00
lib9p
libaml
libauth auth/newns: add chdev command 2022-05-28 02:27:59 +00:00
libauthsrv
libavl
libbin
libbio
libc tmparse: remove incorrect isalpha definition 2022-05-26 20:23:11 +00:00
libcomplete
libcontrol
libdisk
libdraw
libdtracy
libfis
libflate
libframe
libgeometry
libhtml
libhttpd
libip
libjson
liblex
libmach
libmemdraw
libmemlayer
libmp
libndb
libplumb
libregexp
libsat
libscribble
libsec libsec: fix wrong tls1.0 prf regression 2022-03-27 20:28:41 +00:00
libstdio
libString
libsunrpc
libthread
libttf
libventi
mkfile
mkfile.proto