Menu

#318 Chapter 16: Reserved Keywords incoherent

5.1.0
closed
Erich
None
1
2025-05-02
2024-04-02
No

The first example refers to

"DELETE" Fn"."Ext

but the second one refers to

""Erase Fn"."Ext

and the third one to

(Erase Fn"."Ext)

This should be unified.

Discussion

  • m-stgt

    m-stgt - 2024-04-02

    Erase is a REXX keyword? I doubt. The double quotation mark in ""Erase are short for 'address command' (at least under VM/CMS, and I hope this shortcut was copied to ooRexx), thus ""Erase has nothing to do with REXX, it's forwarded to the OS and executed "there", if it's a host command.

     
  • Josep Maria Blasco

    Obviously, "Erase" is not a keyword :) The title of rexxref chapter 16 is "Reserved Keywords". And the first page of that chapter contains the three examples I quoted, to show different ways to ensure that a command is not mistaken by a (current or future) keyword. Since these are three ways to ensure that a certain command is not mistaken, i.e., quoting the first word, prepending an empty string, or enclosing the whole expression in parentheses, it would be nice if this certain command was the same, that is, if the example did not change in the middle of the argumentation.

    That was the purpose of my report :) My impression is that the example was taken from the CMS era (ERASE fn ft fm), and later changed to DOS/OS/2/Windows (DEL fn.ext), but I may be wrong. Indeed, I just discovered that ERASE also works under Windows. Go figure :)

     
    • Josep Maria Blasco

      Confirmed. It is taken from page 154 (section 15) of TRL2, where the primary example is

      'ERASE' fn ft
      

      revealing that this was a VM/CMS example.

       
  • Josep Maria Blasco

    Here's a patch.

     
  • Erich

    Erich - 2024-08-17
    • status: open --> pending
    • assigned_to: Erich
     
  • Erich

    Erich - 2024-08-17

    updates committed with [r12865]

     

    Related

    Commit: [r12865]

  • Rony G. Flatscher

    • Status: pending --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.