是否有指定 unix 管道的消息/流数据类型的标准?
关于 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论