<div class="gmail_quote">2009/1/29 Teemu Likonen <span dir="ltr">&lt;<a href="mailto:tlikonen@iki.fi">tlikonen@iki.fi</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Teemu Likonen (2009-01-28 00:18 +0200) wrote:<br>
<br>
&gt; Marius Kruger (2009-01-28 00:04 +0200) wrote:<br>
&gt;<br>
&gt;&gt; I&#39;m very eager to implement a global option to change the current dir<br>
&gt;&gt; where bzr is going to execute from. It will be very useful for scripts<br>
&gt;&gt; and commandline usage. I find it a pain to cd into a dir to run a<br>
&gt;&gt; single arbitrary command and to cd out again.<br>
&gt;<br>
&gt; In Linux/Unix systems it&#39;s quite easy to use a subshell:<br>
&gt;<br>
&gt; &nbsp; &nbsp; $ (cd ../../other-branch &amp;&amp; bzr do-something)<br>
<br>
</div></div>I forgot that there is also &quot;cd -&quot; command for getting back to the<br>
previous directory:<br>
<br>
 &nbsp; &nbsp;$ cd ../../other-branch<br>
 &nbsp; &nbsp;$ bzr do-something<br>
 &nbsp; &nbsp;$ cd -<br>
</blockquote><div>&nbsp;</div></div>Don&#39;t forget there is always<br>
pushd whatever<br>do stuff in whatever<br>pushd what_sub<br>do stuff in what_sub<br>
popd<br>do stuff in whatever<br>popd<br><br>