3 ms·
This is really spot on! Thanks for summarising it all. Especially, I know that jq is almost ubiquitous, until it's not (for example: not in the busybox, nor alp
by efrecon 5y ago
This is really spot on! Thanks for summarising it all. Especially, I know that jq is almost ubiquitous, until it's not (for example: not in the busybox, nor alpine default docker images). So please: avoid JSON, or at least provide an option to choose the output format and support an alternative to JSON, YAML, whatever.
- ducktective 5y agoCan someone mention an actual system that supports only busybox and for example `jq` can't be installed on it? Embedded systems? What exact models?
- ElectricalUnion 5y agoI like JSON in that it's structually reasonably stable; even under hostile content, it will stay the same. That can't be said of other formatting, that might get confused when newline, spaces, nulls and other "hostile" separators are used. That's specifically one of the reasons why you never can reliably parse ls in even remotely potentially not pristine and safe environments.