TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The output of Linux pipes can be indeterministic

4 点作者 GamerUncle超过 1 年前

2 条评论

Someone超过 1 年前
Past discussion that clicking ‘past’ doesn’t show because it had a different url (<a href="https:&#x2F;&#x2F;utcc.utoronto.ca&#x2F;~cks&#x2F;space&#x2F;blog&#x2F;unix&#x2F;ShellPipelineIndeterminate" rel="nofollow noreferrer">https:&#x2F;&#x2F;utcc.utoronto.ca&#x2F;~cks&#x2F;space&#x2F;blog&#x2F;unix&#x2F;ShellPipelineI...</a> vs <a href="https:&#x2F;&#x2F;www.gibney.org&#x2F;the_output_of_linux_pipes_can_be_indeter" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.gibney.org&#x2F;the_output_of_linux_pipes_can_be_inde...</a>): <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19314681">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19314681</a><p>(Referenced from the article)
bediger4000超过 1 年前
I don&#x27;t think this is a pipe issue.<p>(echo red; echo green 1&gt;&amp;2) | echo blue<p>The string &quot;red&quot; goes into the pipe. The strong &quot;green&quot; goes to stderr, the TTY. The &quot;echo blue&quot; writes to stdout, but does not read from its stdin, the read end of the pipe.<p>Since nothing gets read from the pipe I don&#x27;t see the claim of indeterminacy as true.<p>The different outputs are all due to process scheduling in the kernel.