[Simh] Beta 4 script feature/bug with set throttle n%
Terry Newton
wtn90125 at yahoo.com
Tue Nov 5 12:53:05 EST 2013
Hello,
The new simh supports substitution using %, a nice feature
however it breaks scripts that use: set throttle [some number]%
A workaround is to use \% as in: set throttle 50\%
But would be better to ignore % unless a parameter is actually supplied,
then existing startup scripts (almost all of mine) don't have to be modified.
So, in scp.c I changed...
if (*ip == '%') { /* sub? */
...to...
if ((*ip == '%') && (ip[1] != ' ') && (ip[1] != '\0')) { /* sub? */
...and set throttle 50% works correctly now, also fixes display commands
like 'echo Throttle is set to 50% now'. At least provided there's not a non-space
character after the %, otherwise substitution is triggered.
Terry Newton
More information about the Simh
mailing list