Euphoria
Ticket #728:
invalid parameters is caught in the backend rather than the front end.
-
Reported by
SDPringle
Nov 26, 2011
random parameters without an extra causes an error that doesn't get caught until it reaches the backend. This after the fixes for ticket 725 were successful.
Consider:
$ echo > t_null.e
Shawn@Joy-PC /cygdrive/c/Users/Shawn/Docu
$ eui -foo t_null.e
Fatal run-time error:
slice length is less than 0 (-2)
Details
1. Comment by mattlewis
Nov 27, 2011
It's a problem in the way we slice up the command line argument sequence. It is actually in the front end where the problem occurs.
$ ../4.0/eui ../source/int.ex -foo t_switch.e
source/cominit.e:423 in function expand_config_options()
slice length is less than 0 (-2)
... called from source/intinit.e:41 in procedure intoptions()
... called from source/backend.e:28 in procedure InitBackEnd()
... called from source/mode.e:46 in procedure InitBackEnd()
... called from source/main.e:141 in procedure main()
... called from source/main.e:213
--> See ex.err
2. Comment by SDPringle
Nov 27, 2011
See: hg:euphoria/rev/36122e070c41
changeset: 5279:36122e070c41 branch: 4.0 tag: tip user: Shawn Pringle <shawn.pringle@gmail.com> date: Sun Nov 27 08:10:49 2011 -0300 files: source/cominit.e description:
3. Comment by mattlewis
Nov 27, 2011
See: hg:euphoria/rev/0b744294d825
changeset: 5280:0b744294d825 branch: 4.0 parent: 5278:36caffdac46f user: Matt Lewis date: Sun Nov 27 12:44:17 2011 -0500 files: docs/release/4.0.4.txt source/cominit.e description:
- fix handling of command line arguments when merging config files
- fixes ticket 728