<div dir="ltr">Hi professor,<div><br></div><div>The instruction said &quot;$$ The current process ID.&quot;. But it seems bash always<br></div><div>treats $$ as the process id of itself. Consider the following commands:</div><div>         </div><div>         bash$ ls -l | echo $$</div><div>         bash$ echo $$</div><div><br></div><div>They all print the shell&#39;s process id.</div><div>So, what should we do?</div><div><br></div><div>Thanks!</div><div><br></div><div>Shicong Huang</div><div> </div></div>