Re: Options parseing and append vs. overwrite

From: David Kilzer <ddkilzer_at_ti.com_at_hypermail-project.org>
Date: Fri, 04 Dec 1998 18:35:54 -0600
Message-Id: <199812050035.SAA01823_at_elbonia.rsc.raytheon.com>


As I recall, the order of "options" parsing was messed up. You would think that command-line arguments would override everything, but they don't. I know I read this somewhere on the Hypermail web site, but I can't find it now. (It might have been the man page.)

  http://www.landfield.com/hypermail/

Hypermail can read options from:

  o Environment variables
  o Command-line switches
  o Configuration files

I don't recall what order they are prioritized in, but I do remember the command-line switches don't override everything.

Dave

--
David D. Kilzer           \  ``If we knew what it was we were doing,
Software Designer         /      it would not be called research,
Raytheon Systems Company  \                would it?''
ddkilzer_at_ti.com           /             --Albert Einstein


Tom von Alten <Tom_vonAlten_at_boi.hp.com> wrote:


>This actually has mostly to do with options parsing, and 2b12.
>
>I'm setting up an archive on a fresh hp-ux 10.20 system, with 2b12.
>
>Either my expectation is wrong, or the code is wrong, but I expect that if
>I give a sequence of options such as:
> -c /path/.hmrc -d /path/archive_dir
>
>then the -d option should override whatever is in the .hmrc or program
>defaults. Yes?
>
>In fact, with hm_dir=xyz (in .hmrc) and -d /path/abc (on the cmd line)
>it seems that the -d option is ignored and 'xyz' used.
>
>Commenting out (I *think* that's what a leading '#' does in .hmrc) the
>hm_dir assignment changes it to 'archive' - that is, a default value. The
>-d option is *still* being ignored!
>
>There is something very strange going on with configuration setting
>process, and I'm confused about it. (Of course, it started when deleting
>the spaces around the '=' caused the indexes to stop getting clobbered...)
>
>_____________ Hewlett-Packard Computer Peripherals Bristol
>Tom von Alten mailto:Tom_vonAlten_at_boi.hp.com
>
Received on Sat 05 Dec 1998 02:39:42 AM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:11 AM GMT GMT