[ldapvi] Option -b does not override base: in .ldapvirc

Jan-Piet Mens jpmens at gmail.com
Thu Aug 16 15:16:35 CEST 2007


On 8/16/07, David Lichteblau <david at lichteblau.com> wrote:

> How about a configuration option that explicitly declares itself as an
> optional fall-back value?  Perhaps `default-base' would be a good name.
>
> So with
>   profile foo
>   default-base dc=example,dc=com
> in .ldapvirc and
>   ldapvi -p foo -b dc=other,dc=com
> on the command line, only the latter would be used, but behaviour would
> be unchanged for ordinary 'base' options in the configuration file.

I like that. I'd then have `default-base' in my default profile, and that would
be used if no `-b' specified. Otherwise if I do give `-b' then that
would be used.

Did I understand you correctly?

   -JP



More information about the ldapvi mailing list