> echo foo > test.txt
> jo 'test=@test.txt'
{"test":"foo"}
The manual says:
@file substitute the contents of file as-is
Why the trailing newline is stripped when processing? I expect jo should leave the content string the same as the file content.
BTW, the code is here:
|
if (*bp == '\n') *bp-- = 0; |