<div dir="ltr"><div dir="ltr" style="font-family:arial,sans-serif;font-size:12.727272033691406px">Maybe this is of some interest: <a href="http://unix.stackexchange.com/questions/71205/background-process-pipe-input" target="_blank">http://unix.stackexchange.com/questions/71205/background-process-pipe-input</a><div style="width:16px;height:16px;display:inline-block">
</div><div><br></div><div>Regards,</div><div><br></div><div>Michael</div></div><div class="" style="font-family:arial,sans-serif;font-size:12.727272033691406px"><div id=":133" class="" tabindex="0"><br></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 22 May 2013 23:43, mikey <span dir="ltr"><<a href="mailto:abc.mikey@gmail.com" target="_blank">abc.mikey@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Maybe this is of some interest: <a href="http://unix.stackexchange.com/questions/71205/background-process-pipe-input" target="_blank">http://unix.stackexchange.com/questions/71205/background-process-pipe-input</a><div>
<br></div>
<div>Regards,</div><div><br></div><div>Michael</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 22 May 2013 22:11, Robert McKay <span dir="ltr"><<a href="mailto:robert@mckay.com" target="_blank">robert@mckay.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings fellow Lugites,<br>
<br>
I was wondering if anyone knows why these two commands behave differently;<br>
<br>
bash -c "cat & wait"<br>
bash -c "cat <&0 & wait"<br>
<br>
The first just exits right away. The second one does what I wanted/expected the first one to do.<br>
<br>
also when running the same bash shell in sh-compat mode;<br>
<br>
sh -c "cat <&0 & wait"<br>
<br>
it behaves like the first one and on a ksh shell "(cat & wait)" by itself worked.. unfortunately I don't have the exact version of ksh handy and my attempts to repeat that one here have failed.<br>
<br>
The problem I was actually trying to solve has already been dealt with and this is a simplified demonstration of what I was actually doing - it's just been annoying me all afternoon as I couldn't see why they should behave differently.. other than just 'because' :p<br>
<br>
Cheers,<br>
Rob<br>
<br>
______________________________<u></u>_________________<br>
GLLUG mailing list<br>
<a href="mailto:GLLUG@mailman.lug.org.uk" target="_blank">GLLUG@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/gllug" target="_blank">https://mailman.lug.org.uk/<u></u>mailman/listinfo/gllug</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>