RegExp in FOR broken

Jun 24, 2008
223
0
Siegen, Germany
The following FOR command worked for me until 15.00.34, but is broken now:

FOR %i IN ("::^20\d{10,10}.*.dat$") ECHO %i
201304142202_antares.dat

DIR /b "::^20\d{10,10}.*.dat$"
201304142202_antares.dat
201304152038_pcben.dat
201304152050_pcben.dat
201304161907_pcben.dat
201304171740_pcben.dat
201304172010_pcben.dat
 
May 20, 2008
11,401
99
Syracuse, NY, USA
The following FOR command worked for me until 15.00.34, but is broken now:

FOR %i IN ("::^20\d{10,10}.*.dat$") ECHO %i
201304142202_antares.dat

DIR /b "::^20\d{10,10}.*.dat$"
201304142202_antares.dat
201304152038_pcben.dat
201304152050_pcben.dat
201304161907_pcben.dat
201304171740_pcben.dat
201304172010_pcben.dat
It seems OK here on Win7/32
Code:
v:\> FOR %i IN ("::^20\d{10,10}.*.dat$") ECHO %i
V:\203456789011.dat
V:\203456789012.dat
V:\203456789013.dat
V:\203456789014.dat

v:\> DIR /b "::^20\d{10,10}.*.dat$"
203456789011.dat
203456789012.dat
203456789013.dat
203456789014.dat
 
May 20, 2008
11,401
99
Syracuse, NY, USA
A question ... nickles's FOR command resulted in an unqualified file name. Mine resulted in fully-qualified file names. What's the difference?
 
May 20, 2008
11,401
99
Syracuse, NY, USA
A question ... nickles's FOR command resulted in an unqualified file name. Mine resulted in fully-qualified file names. What's the difference?
To put it another way, what's the difference below. One gives qualified names; the other doesn't.
Code:
v:\> FOR %i IN ("::av.*") ECHO %i
V:\avtemp.btm
V:\avtemp.btm.bak
 
v:\> FOR %i IN (::av.*) ECHO %i
avtemp.btm
avtemp.btm.bak
 
Jun 24, 2008
223
0
Siegen, Germany
Hi Vince,

thanks for your replies. The following BTM demonstrates my "problem" on two Windows 7, 64 bit systems with TCC 15.00.37:
----------------------------------------------
> 201304142202_antares.dat
> 201304152038_pcben.dat
> 201304152050_pcben.dat
> 201304161907_pcben.dat
> 201304171740_pcben.dat
> 201304172010_pcben.dat
FOR %i IN ("::^20\d{10,10}.*.dat$") ECHO %i
DIR /b "::^20\d{10,10}.*.dat$"
---------------------------------------------
 
May 20, 2008
11,401
99
Syracuse, NY, USA
Using your exact example, I have no problem on Win 7/32. Rex will have to sort it out.
Code:
v:\> type nickles.btm
> 201304142202_antares.dat
> 201304152038_pcben.dat
> 201304152050_pcben.dat
> 201304161907_pcben.dat
> 201304171740_pcben.dat
> 201304172010_pcben.dat
FOR %i IN ("::^20\d{10,10}.*.dat$") ECHO %i
DIR /b "::^20\d{10,10}.*.dat$"

v:\> nickles.btm
V:\201304142202_antares.dat
V:\201304152038_pcben.dat
V:\201304152050_pcben.dat
V:\201304161907_pcben.dat
V:\201304171740_pcben.dat
V:\201304172010_pcben.dat
201304142202_antares.dat
201304152038_pcben.dat
201304152050_pcben.dat
201304161907_pcben.dat
201304171740_pcben.dat
201304172010_pcben.dat
 
Jun 24, 2008
223
0
Siegen, Germany
Well, that's strange. I downloaded TCC 32, executed it (still under Windows 7, 64 bit) w/o any tcmd.ini or tcstart.btm, but I keep getting my previous - wrong - results. Are you under Windows 7 32 bit, or did you run TCC 32 under Windows 7 64 bit like me in my latest attempt?
 
May 20, 2008
11,401
99
Syracuse, NY, USA
Well, that's strange. I downloaded TCC 32, executed it (still under Windows 7, 64 bit) w/o any tcmd.ini or tcstart.btm, but I keep getting my previous - wrong - results. Are you under Windows 7 32 bit, or did you run TCC 32 under Windows 7 64 bit like me in my latest attempt?
I have Win7/32. I don't have Win7/64.
 
Similar threads
Thread starter Title Forum Replies Date
vefatica Batch parameters broken? Support 2
Charles Dye Command grouping broken? Support 8
Dick Johnson DrawBox now broken in Windows 10? Support 6
D Theme support partially broken? Support 1
E Fixed View command broken in version 21.0 build 22 Support 9
rps Documentation Regular expression syntax link broken Support 1
C WAD TABCOMPLETE broken? Support 4
A Latest TCC/LE install broken Support 1
WadeHatler pdir broken in 19.1 for directories with spaces Support 1
vefatica Documentation Help: XML link still broken Support 0
vefatica WAD Help Search broken? Support 3
J Vers. 18 Here doc redirection broken? Support 4
nikbackm VIEW broken in v18 + Windows 10 Support 8
jbanaszczyk Broken For and nested Do Support 2
L Fixed FindFirst/FindNext broken, 17.0 Support 2
nickles Fixed @regexsub[] broken Support 2
rps Command Input Window tab completion broken Support 7
vefatica Uservoice ... broken? Support 8
vefatica IFTP problems (broken pipe?) Support 24
yjchung Filename completion broken?? Support 1
B WAD tab navigation broken Support 3
M Web Help option in Take Command 15 broken? Support 3
Charles Dye Low priority to Rex: broken graphic Support 7
Dmitry L. Kobyakov How to clean from the broken updating? Support 3
A TCC/LE Broken Support 20
tmaynard WAD Leiningen broken with TCC (but OK with CMD) Support 12
W /g option (%) on MOVE cmd appears broken TCC 14.03.57 x64 Support 8
nickles Fixed Functionality broken with v54 Support 7
fishman@panix.com Option: Updates broken in Build 36 Support 3
vefatica WAD DIR ftp ... broken Support 2
vefatica Fixed Binary buffers broken? Support 0
C STDOUT seeming broken in TCC.EXE! Strangest behaviour ever! Support 6
vefatica Help broken? Support 2
Daniel Wee Rexx output redirection seems to be broken Support 4
J Problem with broken alias Support 3
p.f.moore Broken email access to these forums - finally giving up Support 4

Similar threads