[Info-vax] Removing the leading $ from commands in a new DCL language
Jan-Erik Soderholm
jan-erik.soderholm at telia.com
Fri May 1 06:40:21 EDT 2015
glen herrmannsfeldt skrev den 2015-04-30 22:39:
> Simon Clubley <clubley at remove_me.eisner.decus.org-earth.ufp> wrote:
>> I think in any new DCL replacement language, the leading dollar on
>> every command line should not be required in command procedures.
>
>> Instead, if you want to pass inline data embedded in a command procedure
>> to a program, new-DCL could either pass the following lines up to some
>> specified EOD marker, or (my preferred option), the actual inline data
>> itself would be the one to be prefixed with a special character instead
>> of the new-DCL commands.
>
> It has been some years since I last wrote a DCL script file,
> but I thought that the $ wasn't required.
It depends what's on the lines.
This works:
----------------
show time
show time
show time
----------------
This does not work:
----------------
show time
show time
set term /inq
show time
----------------
This *does* work:
----------------
show time
show time
set term /inq
$ show time
----------------
The middle example gives:
$ @a
1-MAY-2015 12:36:02
1-MAY-2015 12:36:02
%DCL-W-SKPDAT, image data (records not beginning with "$") ignored
and the problem is the last "show time" command.
So "it depends"...
Jan-Erik.
More information about the Info-vax
mailing list