in reply to Re^5: improve script
in thread improve script

> Which seems to capture the semantics perfectly.

Yes, except it's printing to STDERR not STDOUT.

That's complicating things if sh has to capture the output.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^7: improve script
by afoken (Chancellor) on Nov 29, 2015 at 12:02 UTC
    Yes, except it's printing to STDERR not STDOUT.

    Far more than you ever wanted to know about shell redirections

    That's complicating things if sh has to capture the output.

    No, only that way allows to cleanly separate usable data (STDOUT) from error messages (STDERR), without having to use heuristics (in other words: automated guessing).

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)