<div dir="ltr">Hi Prof,<div><br></div><div>What should the shell do if redirect to a file and at the same time pipe to another command(ls &gt; out | wc )? And if input redirect from a file and also after a pipe( ls | wc &lt; in )? Different shells have different results for those two conditions. </div><div><br></div><div>Shenghan Gao</div></div>