Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Filename completion anomaly

May
13,450
193
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?
 
> If I type
>
> echo %@full["qb<Tab>
>
> it completes to
>
> echoargs.bat %@full["qb
>
> with the cursor after "echoargs.bat".
>
That's really odd! And simply eliminating the quote before "qb" causes it
to work as you'd expect.

-- Howard
 
vefatica wrote:

> If I type
>
> echo %@full["qb
>
> 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?

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
 
Back
Top
[FOX] Ultimate Translator
Translate