FEATURE REQ: Add BZREDITOR

Nikolai Weibull mailing-lists.bazaar-ng at rawuncut.elitemail.org
Sat Sep 17 15:51:20 BST 2005


Jari Aalto wrote:

> Harald Meland <harald.meland at usit.uio.no> writes:

> > I just don't understand why you're so averse to moving the
> > shell-script logic you apparently envision for setting BZREDITOR
> > from a shell-generic initialization file to a bzr-specific script.

> If I understood correctly, that would mean duplicated code
> 
>    1) the login rc files need environment detections
>    2) The same would have to be duplicated in the bzr-specific script
> 
> The (2) can't use the bash variables from (1) which use 'local' in
> functions and pass parameters. Was this the missing peice?

How much of a duplication is actually going on here?

Perhaps you could write a separate utility and store it in ~/bin,
symlink it to ~/.bzr.conf/editor, set EDITOR to it, and you have all
your logic in one file again.

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}




More information about the bazaar mailing list