The second Keyword (File2) is not read from the CLI and .DEF does not what it should.
What am I doing wrong?
Code: Select all
.KEY FILE1/A, FILE2
.BRA {
.KET }
.DEF FILE2 "SomeTestString"
ECHO "{FILE1} is file 1 and {FILE2} is standard for File 2"
QUIT
the results are the following here:
7.AmigaOS:> execute ram:test-script RAM:
RAM: is File 1 and is standard for File 2
it should be
RAM: is File 1 and SomeTestString is standard for File 2
7.AmigaOS:> execute ram:test-script RAM: Data:
RAM: is File 1 and is standard for File 2
and here it should be
RAM: is File 1 and Data: is standard for File 2
On the other hand this works partially
Code: Select all
.KEY FILE1/A, FILE2
.BRA {
.KET }
ECHO "{FILE1} is file 1 and {FILE2$Blabla} is standard for File 2"
QUIT
Code: Select all
.KEY FILE1/A, FILE2, FILE3
.BRA {
.KET }
.DEF FILE2 "SomeTestString"
ECHO "{FILE1} is file 1 and {FILE2} is standard for File 2, while {FILE3$blablabla}"
QUIT
EXECUTE: Parameters unsuitable for key "FILE1/A,".
What am I doing wrong?