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

Paul Harris harris.pc at gmail.com
Thu Jan 29 09:18:45 GMT 2009


2009/1/29 Teemu Likonen <tlikonen at iki.fi>

> 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 -
>

Don't forget there is always
pushd whatever
do stuff in whatever
pushd what_sub
do stuff in what_sub
popd
do stuff in whatever
popd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20090129/fc955e82/attachment.htm 


More information about the bazaar mailing list