Menu

#338 ${...} style env var expansion in ASSIGN

GC 3.x
needs-merge
nobody
7
2020-12-14
2018-08-02
Edward Hart
No

Currently GnuCOBOL supports "$BLAH" style environment variable expansion in ASSIGN clauses. The filiorewrite branch supports a ${BLAH} style syntax. From StackOverflow:

${variable} is just a disambiguation mechanism, so you can say ${var}text when you mean, the contents of the variable var, followed by text (as opposed to $vartext which means, the contents of the variable vartext).

This seems like a reasonable feature to want, so it should be merged into trunk.

Discussion

  • Simon Sobisch

    Simon Sobisch - 2020-12-13

    Note: trunk switched in the meantime, I'd also accept a merge of this single entry which should result only in a change in a single function into the 3.x branch.
    @edward-h should we keep this FR assigned to you?

     
    • Edward Hart

      Edward Hart - 2020-12-13

      No, feel free to unassign me.

       
  • Simon Sobisch

    Simon Sobisch - 2020-12-14
    • assigned_to: Edward Hart --> nobody
    • Group: GC 3.0 --> GC 3.x
     

Log in to post a comment.