1 comments

  • kazinator19 minutes ago
    &gt; <i>A command is saying too little when it hangs for several minutes and the user starts to wonder if it’s broken.</i><p>Nope. For debugging the program, it is nice to have some debug tracing option, but if it&#x27;s not the program&#x27;s specification to produce output, it should not produce any. If the program&#x27;s specification is that it produces a certain output after a certain calculation, then it shall not produce any other output, even if that calculation takes three weeks.<p>&quot;cp -r from to&quot; is supposed to be quiet until it&#x27;s done or hits an error.<p>It would be nice to have an agreed-upon protocol for progress reporting. For instance, imagine of we had file descriptor 3 as &quot;stdprogress&quot;. Programs could dump specially formatted messages there which the parent job control shell could intercept and turn into a progress display (with multiple rows for pipeline elements and such). It&#x27;s not bad; but fluff like this can&#x27;t be in band with the output, or at least not by default.
    • yjftsjthsd-h3 minutes ago
      &gt; It would be nice to have an agreed-upon protocol for progress reporting. For instance, imagine of we had file descriptor 3 as &quot;stdprogress&quot;. Programs could dump specially formatted messages there which the parent job control shell could intercept and turn into a progress display (with multiple rows for pipeline elements and such).<p>Different thing, but I am reminded of the BSDs having SIGINFO.<p>&gt; It&#x27;s not bad; but fluff like this can&#x27;t be in band with the output, or at least not by default.<p>FWIW, I would describe stderr as being out of band. IIRC that&#x27;s how e.g. pv works; `&lt;file.img pv | dd of=&#x2F;dev&#x2F;foo` sends data along stdout while giving status info to the user since stderr isn&#x27;t being piped.