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

TabComplete Argument Issue

Discussion in 'Support' started by Fross, Jan 4, 2016.

  1. Fross

    Joined:
    May 30, 2008
    Messages:
    223
    Likes Received:
    1
    Happy New Year everyone,

    I was looking at TabComplete today and it doesn't look like the CommandLine argument returns the entire command line, just the first word.

    xx.btm is loaded in as a tab completion script. I hit tab after typing "now" below:

    Code:
    D:\Users\Michael\Desktop>type xx.btm
    echo.
    echo %1
    echo %2
    echo %3
    echo %4
    
    D:\Users\Michael\Desktop>tabcomplete /s
    xx.btm
    
    D:\Users\Michael\Desktop>testing hitting tab now
    testing
    now
    20
    testing
    
    TCC 19.00.28 x64 Windows 10 [Version 6.3.10240]
    TCC Build 28 Windows 10 Build 10240

    Regards,

    Michael
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,855
    Likes Received:
    83
    TABCOMPLETE is passing the entire command line; however it wasn't double quoting it so a %4 would only get the first argument. I've made a change for the next build to double quote it (per the docs).
     

Share This Page