Closed
Description
Describe the bug
In the example below the numbers are squared while the output is expected to be the same as input
$ jq '.[]|.*3 as $v|.' <<<'[1, 4, 5,3]'
1
16
25
9
Similarly input is doubled but should be the same:
$ jq '.[]|.+1 as $v|.' <<<'[1, 4, 5,3]'
2
8
10
6
Environment (please complete the following information):
- OS and Version: all platforms including https://jqplay.org/
- jq version : 1.6