<div class="gmail_quote">2009/1/29 Teemu Likonen <span dir="ltr"><<a href="mailto:tlikonen@iki.fi">tlikonen@iki.fi</a>></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>
> Marius Kruger (2009-01-28 00:04 +0200) wrote:<br>
><br>
>> I'm very eager to implement a global option to change the current dir<br>
>> where bzr is going to execute from. It will be very useful for scripts<br>
>> and commandline usage. I find it a pain to cd into a dir to run a<br>
>> single arbitrary command and to cd out again.<br>
><br>
> In Linux/Unix systems it's quite easy to use a subshell:<br>
><br>
> $ (cd ../../other-branch && bzr do-something)<br>
<br>
</div></div>I forgot that there is also "cd -" command for getting back to the<br>
previous directory:<br>
<br>
$ cd ../../other-branch<br>
$ bzr do-something<br>
$ cd -<br>
</blockquote><div> </div></div>Don'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>