cvs commit: ALFS/nALFS/src init.c init.h nalfs.c

Neven Has haski at sezampro.yu
Wed Nov 5 12:09:52 PST 2003

On Tue, Nov 04, 2003 at 11:05:36PM -0700, kpfleming at wrote:
> kpfleming    03/11/04 23:05:36
>   Modified:    nALFS/src init.c init.h nalfs.c
>   Log:
>   read /etc/nALFSrc (if it exists) before user's .nALFSrc
>   support --rcfile parameter (overrides default rc files)
>   minor error messages formatting changes

There are few problems with this:

"nALFS --rcfile package.xml" tries to read package.xml as a rc file,
instead of exiting with an error (No profiles specified).

"nALFS --help", "nALFS --version" don't do what's expected when rc
file is broken -- nALFS shouldn't read it at all, but display default
values in --help.

All in all, read_command_line_options() would have to be called before
reading rc file.  Of course, command line options have to have higher
priority, so parse_rc_file() has to be able to skip setting some of
the options already specified on command line.

I'm still not sure about the best way of doing that.  Maybe by adding
a flag for each option, that will indicate whether it has been
changed... (comparing the value with the default won't do


More information about the alfs-log mailing list