1
0
mirror of https://github.com/simh/simh.git synced 2026-01-31 05:43:06 +00:00

SCP: Change command argument processing of %% and \% to be consistent.

%% now inserts a bare % and \\ only means something when parsing a quoted
string argument (used by EXPECT and SEND commands).

Additionally, EXPECT and BREAK commands have action steps which will now
expand arguments as each of the actions are executed rather than when the
EXPECT or BREAK command is defined.
This commit is contained in:
Mark Pizzolato
2017-09-16 17:05:26 -07:00
parent d02de5156f
commit c8a420ad48
3 changed files with 47 additions and 17 deletions

View File

@@ -319,8 +319,8 @@ Built In variables %DATE%, %TIME%, %DATETIME%, %LDATE%, %LTIME%, %CTIME%, %DATE_
Token %n (n being a single digit) expands to the n'th argument
Token %* expands to the whole set of arguments (%1 ... %9)
The input sequence "\%" represents a literal "%", and "\\" represents a
literal "\". All other character combinations are rendered literally.
The input sequence "%%" represents a literal "%". All other
character combinations are rendered literally.
Omitted parameters result in null-string substitutions.