On 07/06/2012 07:09 AM, Jim Meyering wrote:
> You're welcome to leave the pipe-to-sed.
> Worrying about an extra process when processing a diagnostic
> is probably a pre-optimization anyhow.

... unless the diagnostic is something like "program failed"
due to lack of enough system resources to fork.

Perhaps the function could use a 'case' to see whether the
format contains '\n' or a newline, and use the pipe-to-sed
only in that case?  It is a bit of a hack, admittedly.

Reply via email to