title: How do I set the working directory of the parent process?
body: <p>As the title reveals it, we are writing a Unix-style shell utility <strong>U</strong> that is supposed to be invoked (in most cases) from bash.</p>
  
  <p>How exactly could <strong>U</strong> change the working directory of bash (or parent in general)?</p>
  
  <p>P.S. The shell utility <strong>chdir</strong> succeeds in doing exactly the same, thus there must be a programmatic way of achieving the effect.</p>