You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
- Could you possibly give some background to your question, a reason for needing a new standard stream? Also, what would be communicated on this stream that could not be communicated on the standard input, standard output, or the standard error stream?Kusalananda– Kusalananda ♦2021-08-22 20:07:13 +00:00Commented Aug 22, 2021 at 20:07
- I'm not expecting to actually do this, to be clear. There are a lot of suggestions on how to pipe structured data between programs. There are tools like the relatively new "jc" which provide generic parsers for textual output of a bunch of programs. There's whatever power-shell is doing... A new stream is another way to handle it, and I'd love to talk about the advantages and disadvantages of that approach, but I don't think stack exchange will let me as it's too broad of a topic.Alex Davies– Alex Davies2021-08-23 13:58:55 +00:00Commented Aug 23, 2021 at 13:58
- The thing about the standard streams is that there is nothing saying anything about what format the data should have on these streams. In fact, data may be JSON, GZip compressed binary, line-based text records, CSV, or whatever else. It sounds as if you're talking about a stream that enforces something like a standard format. Is that correct?Kusalananda– Kusalananda ♦2021-08-23 15:35:50 +00:00Commented Aug 23, 2021 at 15:35
- I think there's a big difference between machine-optimized and person-optimized formats. Json is an obvious option for a machine-optimized format, but I wouldn't want LS to output json by default. A /dev/stddata node could make sense as well, which could support multiple machine-readable data formats. I think the important thing is to have a separate stream for machine-readable data. Alternatively a way to tell if the command ahead in the pipeline wants machine-readable data could be nice. The same way color gets "magically" stripped if you're piping to not a tty.Alex Davies– Alex Davies2021-08-24 15:49:47 +00:00Commented Aug 24, 2021 at 15:49
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. shell-script), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you