<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


If the output is empty _and_ there is output sent to stderr, then it shows the stderr output as a tool tip and doesn’t replace input.<br>
<br>
I tried with ‘printf ""’ but that did replace input (with empty string).</blockquote><div><br></div><div style>Indeed, you're right. It turns out to be an issue with grep. It's not that it there's is output on stderr, but its exit code is actually 1 if it does not match any lines.</div>

<div style>"Normally, exit status is 0 if selected lines are found and 1 otherwise. But the exit status is 2 if an error occurred, unless the -q or --quiet or --silent option is used and a selected line is found."</div>

<div style>That's an unexpected feature for me. :)</div><div style><br></div><div style>Maybe you could add a tooltip saying "command failed (without any output)" or so?</div><div style><br></div><div style>

--</div><div style>Meryn</div></div></div></div>