tcl proc fails on subst command

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf tcl proc fails on subst command

  • Creator
    Topic
  • #55084
    Suzy Hoffman
    Participant

      I have a tcl proc that is failing in rare instances.  I can

    Viewing 0 reply threads
    • Author
      Replies
      • #84027
        Charlie Bursell
        Participant

          subst ?-nobackslashes? ?-nocommands? ?-novariables? string

          If any of the -nobackslashes, -nocommands, or -novariables are specified, then the corresponding substitutions are not performed. For example, if -nocommands is specified, command substitution is not performed: open and close brackets are treated as ordinary characters with no special interpretation.

          You may have [} etc in the string.  I would use all three flags unless there are commands in the string you want to ececute

          set sUUData [subst nobackslashes -nocommands -novariables $sUUData]

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.