Repository navigation
Replies: 3 comments
|
Hmm weird, what shell and os environment is this? it loos like the shell somehow splits the |
|
The filter is correct. The shell split it, so jq took Quote the entire filter so it is one argument: echo "$array" | jq '. + ["vier"]'To avoid inner quotes, pass the new item with echo "$array" | jq --arg v vier '. + [$v]'On jq treats the first non-option argument as the program and every later argument as an input filename, which is why a split filter becomes |
|
jq split the program. The error means the filter was not one argument. This fails:
This works:
|
Uh oh!
There was an error while loading. Please reload this page.
tried following
It didn't work. Does anyone know why?
All reactions