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

Filename completion anomaly

Discussion in 'Support' started by vefatica, Jul 28, 2008.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    8,053
    Likes Received:
    30
    If I type

    echo %@full["qb<Tab>

    it completes to

    echoargs.bat %@full["qb

    with the cursor after "echoargs.bat".

    I'm not questioning whether it should complete "qbat.bat" (which is present).

    But it shouldn't do completion on "echo", a whole word away, should it?
     
  2. Howard Goldstein

    Joined:
    Jun 1, 2008
    Messages:
    111
    Likes Received:
    1
    That's really odd! And simply eliminating the quote before "qb" causes it
    to work as you'd expect.

    -- Howard
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,991
    Likes Received:
    84
    vefatica wrote:

    You cannot use filename completion if you have an open double quote on
    the command line. In this instance, the parser is looking for the first
    quote, doesn't find it, and defaults to the start of the line. Either
    use the correct syntax:

    echo %@full["qb"<tab>

    or put a space before the ":

    echo %@full[ "qb<tab>

    (Note that this behavior is more than 15 years old ...)

    Rex Conn
    JP Software
     

Share This Page