Re: bug in the intinit.e file
- Posted by jimcbrown (admin) Oct 08, 2010
- 1050 views
bugfinder said...
Matt: If you add this line it will fix the problem. Argv = expand_config_options(Argv) m:map opts = cmd_parse( get_options(), { NO_VALIDATION_AFTER_FIRST_EXTRA, PAUSE_MSG, pause_msg }, Arg add ==>> if length(Argv) = 0 then Argv = getenv("eudir") end if sequence tmp_Argv = Argv Argv = Argv[1..2] & GetDefaultArgs() Argc = length(Argv)
This is wrong for a couple of different reasons:
1) EUDIR is not guaranteed to be set for 4.0 (we're moving to use of eu.cfg)
2) if EUDIR is not set, then getenv() returns -1, which could cause a crash as Argv is a sequence
3) even if EUDIR is set, Argv is meant to be a list of strings. Setting it equal to the contents of EUDIR will make Argv into a single string (or a list of characters)
4) Most importantly, the real problem seems to be in getting the list of config options. That is the reason why Argv is empty. It's not clear to any of us why that is failing for you...