[rfc] bzr --cd=/any/where rocks

Teemu Likonen tlikonen at iki.fi
Thu Jan 29 08:54:22 GMT 2009


Teemu Likonen (2009-01-28 00:18 +0200) wrote:

> Marius Kruger (2009-01-28 00:04 +0200) wrote:
>
>> I'm very eager to implement a global option to change the current dir
>> where bzr is going to execute from. It will be very useful for scripts
>> and commandline usage. I find it a pain to cd into a dir to run a
>> single arbitrary command and to cd out again.
>
> In Linux/Unix systems it's quite easy to use a subshell:
>
>     $ (cd ../../other-branch && bzr do-something)

I forgot that there is also "cd -" command for getting back to the
previous directory:

    $ cd ../../other-branch
    $ bzr do-something
    $ cd -



More information about the bazaar mailing list