是否有指定 unix 管道的消息/流数据类型的标准?

发布于 2025-01-12 14:52:23 字数 268 浏览 4 评论 0原文

关于 unix 管道的 Wiki 文章 说“每个进程的输出文本 (stdout) 是作为输入(stdin)直接传递到下一个”,但显然它不仅仅是文本,而且可以是任何字节流,这些字节流被分块成管道进程生产/消费的片段。是否有一个标准来规范此类管道上的流数据,或者 nix 设计师/思想家只是希望用户“足够聪明”,能够以兼容的方式将生产者和消费者结合起来?

Wiki article about unix pipelines says that "output text of each process (stdout) is passed directly as input (stdin) to the next one", but obviously it's not just about text, but it can be any byte stream chunked into pieces that piped processes produce/consume. Is there a standard that regulates streamed data over such pipeline, or nix designers/ideologists were just hoping that user is 'smart enough' to combine producers and consumers in compatible manner?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文