Closed darkmoloko closed 1 month ago
Seem to be that slurp is per file atm:
$ jaq -- -sc . <(echo 1 2) <(echo 3 4)
[1,2]
[3,4]
$ jaq -- -cs . <(echo 1 2 3 4)
[1,2,3,4]
Fun bonus fact: jq for some reason supports reading values that span two files 🥳😬
$ jq -sc . <(echo -n 1 2) <(echo -n 3 4)
[1,23,4]
@darkmoloko, this behaviour is intentional and the difference with respect to jq is motivated here.
@wader: 😱 for 23
The concatenation of two objects into a single object is not done when reading objects from files, but it is when using cat and pipe method: