Re: forgetting my DCL: what am I missing?
- From: "AEF" <spamsink2001@xxxxxxxxx>
- Date: 28 Jan 2006 20:13:20 -0800
JF Mezei wrote:
> David J Dachtera wrote:
> > As to the insertion of a space, that is a bit more puzzling.
>
> Looking back at the story, there may be some consistency.
>
> The first "token" in a line is treated differently because DCL checks
> for a non explicit symbol substitution (whether a foreign command or
> just a command redefinition). The rest of the line is checked only for
> explicit symbols (eg: use of & or ' to request symbol substitution).
Please keep in mind that apostrophe substitution happens entirely in
phase 1. In this phase, the command string is simply a text string.
Ampersand substitution happens in phase 2 in which at least *some*
structure has been imposed on the "text string". My evidence to support
this statement is that the following example works:
$ DT="2-JAN 23:33"
$ DIRECTORY/SINCE=&DT/DATE/SIZE
Note that this cannot be purely a text string during ampersand
substitution because it works without the quotation marks that would
normally be needed to tell the command interpreter that a date and time
separated by a space is the single argument of the /SINCE qualifier.
This structure has been imposed on the command *before* ampersand
substitution occurs (which is consistent with the User's Manual). Yet,
it is text-string enough (well, the parameters are still text
string-ish) so that David's recent example
$ fsp := myfile.dat
$ del/lo &fsp;
also works.
> For a non explicit symbol substitution the space is probably added for
> safety to prevent the rest of the line from changing the actual command.
> (think ambiguous commands). the addition of the space ensure that the
> translated command remains by itself on the line.
Yes, I think this statement is quite relevant, especially with the fact
that DCL, in phase 2, uses the first illegal symbol-name character to
determine the end of the first token on the command line.
AEF
.
- References:
- forgetting my DCL: what am I missing?
- From: Phillip Helbig---remove CLOTHES to reply
- Re: forgetting my DCL: what am I missing?
- From: AEF
- Re: forgetting my DCL: what am I missing?
- From: Phillip Helbig---remove CLOTHES to reply
- Re: forgetting my DCL: what am I missing?
- From: Ken Fairfield
- Re: forgetting my DCL: what am I missing?
- From: Phillip Helbig---remove CLOTHES to reply
- Re: forgetting my DCL: what am I missing?
- From: AEF
- Re: forgetting my DCL: what am I missing?
- From: Ken Fairfield
- Re: forgetting my DCL: what am I missing?
- From: AEF
- Re: forgetting my DCL: what am I missing?
- From: Ken Fairfield
- Re: forgetting my DCL: what am I missing?
- From: AEF
- Re: forgetting my DCL: what am I missing?
- From: AEF
- Re: forgetting my DCL: what am I missing?
- From: Ken Fairfield
- Re: forgetting my DCL: what am I missing?
- From: AEF
- Re: forgetting my DCL: what am I missing?
- From: David J Dachtera
- Re: forgetting my DCL: what am I missing?
- From: JF Mezei
- forgetting my DCL: what am I missing?
- Prev by Date: Re: forgetting my DCL: what am I missing?
- Next by Date: Re: Looking for .ISO files for SIMH
- Previous by thread: Re: forgetting my DCL: what am I missing?
- Next by thread: Re: forgetting my DCL: what am I missing?
- Index(es):
Relevant Pages
|