4 ms·
I've never heard of stddata. What distro/environment provides it?
by NoboruWataya 1y ago
I've never heard of stddata. What distro/environment provides it?
- jamessb 1y agoNor have I; I think it is just what the developer of tree has chosen to call file descriptor 3, rather than being a wider convention or standard thing provided by the environment. > As of version 2.0.0, in Linux, tree will attempt to automatically output a compact JSON tree on file descriptor 3 (what I call stddata,) if present https://github.com/Old-Man-Programmer/tree/blob/d501b58ff9cbfd64272c8cbcad0bda36a3fada06/doc/tree.1#L534 https://github.com/Old-Man-Programmer/tree/blob/d501b58ff9cb...
- deathanatos 1y agoIt's a local invention of TFA's, AFAIK. It's not "std". stdout would be the canonical location for putting JSON output (and the "data" of a command, generally). Then things like `| jq` just work.