1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed TCC 17 describe redirection

Discussion in 'Support' started by pizzaman, Feb 3, 2015.

  1. pizzaman

    Joined:
    Oct 24, 2011
    Messages:
    53
    Likes Received:
    0
    Input redirection for DESCRIBE is no longer working correctly in TCC 17. Here's a line that I use in numerous BTM and REXX scripts:

    *DESCRIBE TargetFile <TmpFile

    If TargetFile already has a description, that command in TCC 17 appends the redirected description to the existing one.

    In all previous versions of TCC the existing description would be replaced. By previous versions I mean from TCC 16 back to the early days of Windows XP.

    Update: I just checked my archives and the earliest version of my cpdesc script that I still have was in 1999.
     
    #1 pizzaman, Feb 3, 2015
    Last edited: Feb 3, 2015
  2. pizzaman

    Joined:
    Oct 24, 2011
    Messages:
    53
    Likes Received:
    0
    Why do I use redirection for DESCRIBE? Because that's the only reliable way to get quotes into a description, such as:

    "Sinkholes: Buried Alive" {PBS:Nova}

    By writing the description to a temporary file, virtually any character can be included in a description -- just like when manually entering a description at DESCRIBE's prompt.

    I tried the SafeChars plug in, but it only worked sometimes and not reliably.

    I have re-installed Take Command 16. Version 17 also broke a few other scripts. For instance it seems to be intolerant of two sets of double quotes surrounding a file name, such as ""file one"". Previous versions didn't care.
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,854
    Likes Received:
    83
  4. pizzaman

    Joined:
    Oct 24, 2011
    Messages:
    53
    Likes Received:
    0
    Thanks Rex.
     

Share This Page