Closed miroli closed 2 years ago
Weird, that was not doing that before, maybe a change I missed in NodeJS handling of process.stdout.write
: now (after
92830e5) the process waits for the write to be done before exiting. Patch published in v15.16.1
, can you give it a try?
Indeed that did the trick. Thanks for the quick response!
Given _querytemplate.js
This outputs the expected results:
wd sparql query_template.js Q18912794
. This saves the expected results to a file:wd sparql query_template.js Q18912794 > results.json
. However, this does not work:wd sparql query_template.js Q18912794 | jq -c '.'
It complains that the JSON stream is corrupted:parse error: Unfinished JSON term at EOF at line 2974, column 10
.Even stranger, writing the output to a file, and then piping it to
jq
also works as expected.