Filename completion anomaly

May 20, 2008
11,300
95
Syracuse, NY, USA
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?
 

rconn

Administrator
Staff member
May 14, 2008
12,319
148
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
 
Similar threads
Thread starter Title Forum Replies Date
M Is bash-like filename completion possible? Support 3
gworley Virtual network drive filename completion doesn’t get directories Support 0
D Exclude extension from filename completion Support 1
yjchung Filename completion broken?? Support 1
JohnQSmith Filename completion Support 8
S 16.00.41 - filename completion locks up TCC Support 14
R WAD issue with filename completion with system and hidden files Support 8
R How to? How to prevent filename completion for some file types? Support 3
M Filename completion with forward slashes Support 10
James Miller How to? filename completion question Support 1
J Fixed Filename completion does not quote filenames containing ^ Support 1
Jay Sage Filename Completion in Take Command vs. TCC Support 1
J Filename Completion Window Support 1
K Fixed Prompt display will be shifted after use dir to display a filename with Chinese. (v25.00.28 x64) Support 18
vefatica PDIR with fixed-width unqualified filename? Support 2
D When copying/moving, appending " (2)" to filename when the target file already exist. Support 7
Joe Caverly CMD.EXE and filename(1).ext Support 3
C How to? @replace[a comma,_,filename] Support 5
rfaquino How to? Display filename being copied on a single line Support 2
C How to? tell is @full[filename] contains any special JPSosft special chars Support 1
A How to? Filter a list by numeric number within filename Support 28
newbie Change percent-sign to anything-else in filename Support 24
P How to enable \ with tab completion Support 4
vefatica LIBRARY and file name completion? Support 4
vefatica Completion of stream names on network share? Support 2
H file name completion on tcc21.01.61 Support 4
Charles Dye File completion change Support 11
D Tab completion differences with cmd.exe Support 3
R How to? Name completion only of directories? Support 3
vefatica Tab completion? Support 4
I tab completion with directory commands Support 7
rps Command Input Window tab completion broken Support 7
N Command completion and PATH Support 0
T Tab completion annoyances Support 37
A How to? return to completion mask after auto-completion Support 14
W File completion without space/executable extensions Support 3
R One character alias prevents completion? Support 8
S Weird tab completion in command line Support 2
nickles Tab completion Support 9
J Command line completion in the "Command Input" Window Support 3
L File completion window saws long paths Support 3
S TCC 9.02 vs 4NT 8.02 TAB completion on FTP Support 7
nickles Stream completion Support 2
vefatica Copy/Paste anomaly Support 4
T TCC Window Background Color Anomaly Support 9
vefatica MOVE anomaly Support 8
vefatica WMIQUERY anomaly Support 1
vefatica An IDE anomaly Support 2
Roedy Loop anomaly Support 6
P Toolbar configuration anomaly Support 5

Similar threads