frontend/control.c, bug fix, "#310 Command parser problem with wrdata"
make all commands (see manual 17.5) entered manually, with .control section or by script case insensitive. generally in inpcom.c everything is converted to lowercase, but there are exceptions, e.g. "wrdata", which might be followed by arguments whose case needs to be preserved. (most notably filenames) Thanks to Mathias Gebhardt, who reported this bug in #310 Command parser problem with wrdata http://sourceforge.net/p/ngspice/bugs/310/
This commit is contained in:
parent
0bfee6575b
commit
88414a58ce
|
|
@ -195,7 +195,7 @@ docommand(wordlist *wlist)
|
|||
|
||||
/* Look for the command in the command list. */
|
||||
for (i = 0; cp_coms[i].co_comname; i++)
|
||||
if (strcmp(cp_coms[i].co_comname, s) == 0)
|
||||
if (strcasecmp(cp_coms[i].co_comname, s) == 0)
|
||||
break;
|
||||
|
||||
command = &cp_coms[i];
|
||||
|
|
|
|||
Loading…
Reference in New Issue