2022-01-09 00:26:49 +03:00
|
|
|
$ fq -i
|
|
|
|
null> 0, -1, 1208925819614629174706175, -1208925819614629174706176 | bnot
|
|
|
|
-1
|
|
|
|
0
|
|
|
|
-1208925819614629174706176
|
|
|
|
1208925819614629174706175
|
2022-01-09 12:43:07 +03:00
|
|
|
null> null | bnot
|
|
|
|
error: cannot bnot: null
|
|
|
|
null> bnot(1)
|
2022-02-18 02:47:17 +03:00
|
|
|
error: expr: function not defined: bnot/1
|
2022-01-09 00:26:49 +03:00
|
|
|
null> [0,0], [8,1], [0xffff_ffff_ffff_ffff,1] | bsl(.[0]; .[1])
|
|
|
|
0
|
|
|
|
16
|
|
|
|
36893488147419103230
|
2022-01-09 12:43:07 +03:00
|
|
|
null> bsl(1)
|
2022-02-18 02:47:17 +03:00
|
|
|
error: expr: function not defined: bsl/1
|
2022-01-09 12:43:07 +03:00
|
|
|
null> bsl(null; 1)
|
|
|
|
error: cannot bsl: null and number
|
2022-01-09 00:26:49 +03:00
|
|
|
null> [0,0], [8,1], [0x1_ffff_ffff_ffff_fffe,1] | bsr(.[0]; .[1])
|
|
|
|
0
|
|
|
|
4
|
|
|
|
18446744073709551615
|
2022-01-09 12:43:07 +03:00
|
|
|
null> bsr(1)
|
2022-02-18 02:47:17 +03:00
|
|
|
error: expr: function not defined: bsr/1
|
2022-01-09 12:43:07 +03:00
|
|
|
null> bsr(null; 1)
|
|
|
|
error: cannot bsr: null and number
|
2022-01-09 00:26:49 +03:00
|
|
|
null> [0,0], [0xffff_ffff_ffff_ffff_ffff,0x1234], [0x1234,0xffff_ffff_ffff_ffff_ffff,0x1234] | band(.[0]; .[1])
|
|
|
|
0
|
|
|
|
4660
|
|
|
|
4660
|
2022-01-09 12:43:07 +03:00
|
|
|
null> band(1)
|
2022-02-18 02:47:17 +03:00
|
|
|
error: expr: function not defined: band/1
|
2022-01-09 12:43:07 +03:00
|
|
|
null> band(null; 1)
|
|
|
|
error: cannot band: null and number
|
2022-01-09 00:26:49 +03:00
|
|
|
null> [0,0], [0xffff_ffff_ffff_ffff_0000,0x1234], [0x1234,0xffff_ffff_ffff_ffff_0000,0x1234] | bor(.[0]; .[1])
|
|
|
|
0
|
|
|
|
1208925819614629174645300
|
|
|
|
1208925819614629174645300
|
2022-01-09 12:43:07 +03:00
|
|
|
null> bor(1)
|
2022-02-18 02:47:17 +03:00
|
|
|
error: expr: function not defined: bor/1
|
2022-01-09 12:43:07 +03:00
|
|
|
null> bor(null; 1)
|
|
|
|
error: cannot bor: null and number
|
2022-01-09 00:26:49 +03:00
|
|
|
null> [0,0], [0xffff_ffff_ffff_ffff_ffff,0x1234], [0x1234,0xffff_ffff_ffff_ffff_ffff,0x1234] | bxor(.[0]; .[1])
|
|
|
|
0
|
|
|
|
1208925819614629174701515
|
|
|
|
1208925819614629174701515
|
2022-01-09 12:43:07 +03:00
|
|
|
null> bxor(1)
|
2022-02-18 02:47:17 +03:00
|
|
|
error: expr: function not defined: bxor/1
|
2022-01-09 12:43:07 +03:00
|
|
|
null> bxor(null; 1)
|
|
|
|
error: cannot bxor: null and number
|
2022-01-09 00:26:49 +03:00
|
|
|
null> ^D
|