WAD PDir not working correctly...

May 24, 2010
855
0
Northlake, Il
Sorry but this basically a repeat of an earlier posting with some additional information. The following "PDir" command:
Code:
pdir *.m* /S /A-D /(@Ext[*] fn) | Sort | List
produces the following output (excerpted):
Code:
...
bad Diamonds and Rust.mp3.bad
bad Dream On.mp3.bad
bad Everybody's On The Run.mp3.bad
bad Four Letter Word.mp3.bad
bad Georgy Girl.mp3.bad
bad Hallelujah.mp3.bad
bad Hallelujah.mp3.bad
bad I Won't Let Go.mp3.bad
bad She's Not There.mp3.bad
bad She's Not There.mp3.bad
bad She's Not There.mp3.bad
bad Touchec.mp3.Given a .bad extension so it is excluded from music lists.bad
bad Watching You Watch Him.mp3.bad
bad Wonderwall.mp3.bad
m4a 01 - Bad Day (Acoustic Version).m4a
m4a 01 - Bad Day (Acoustic Version).m4a
m4a 01 - Highway Blues.m4a
m4a 01 - Highway Blues.m4a
m4a 01 - Like Humans Do (radio edit).m4a
m4a 01 - Like Humans Do (radio edit).m4a
m4a 01 - Symphony No. 9 (Scherzo) I.m4a
m4a 01 - Symphony No. 9 (Scherzo) I.m4a
m4a 01 - Symphony No. 9 (Scherzo) II.m4a
m4a 01 - Symphony No. 9 (Scherzo) II.m4a
...
Searching for "*.m??" gives the expected results.
 
May 20, 2008
11,432
99
Syracuse, NY, USA
All those files match *.m*.

Sorry but this basically a repeat of an earlier posting with some additional information. The following "PDir" command:
Code:
pdir *.m* /S /A-D /(@Ext[*] fn) | Sort | List
produces the following output (excerpted):
Code:
...
bad Diamonds and Rust.mp3.bad
bad Dream On.mp3.bad
bad Everybody's On The Run.mp3.bad
bad Four Letter Word.mp3.bad
bad Georgy Girl.mp3.bad
bad Hallelujah.mp3.bad
bad Hallelujah.mp3.bad
bad I Won't Let Go.mp3.bad
bad She's Not There.mp3.bad
bad She's Not There.mp3.bad
bad She's Not There.mp3.bad
bad Touchec.mp3.Given a .bad extension so it is excluded from music lists.bad
bad Watching You Watch Him.mp3.bad
bad Wonderwall.mp3.bad
m4a 01 - Bad Day (Acoustic Version).m4a
m4a 01 - Bad Day (Acoustic Version).m4a
m4a 01 - Highway Blues.m4a
m4a 01 - Highway Blues.m4a
m4a 01 - Like Humans Do (radio edit).m4a
m4a 01 - Like Humans Do (radio edit).m4a
m4a 01 - Symphony No. 9 (Scherzo) I.m4a
m4a 01 - Symphony No. 9 (Scherzo) I.m4a
m4a 01 - Symphony No. 9 (Scherzo) II.m4a
m4a 01 - Symphony No. 9 (Scherzo) II.m4a
...
Searching for "*.m??" gives the expected results.
 
Jun 2, 2008
359
4
Sorry but this basically a repeat of an earlier posting
I don't see that thread anymore... I saw 2, maybe 3 responses to it. Did you see them?

*.m* means anything of any length before the .m and anything of any length after it, no matter where .m appears in the filename.

*.m?? means a name that ends with .m and up to 2 more characters.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,469
88
Albuquerque, NM
prospero.unm.edu
As Vincent and Tea-Time have explained, it's doing just what you told it to do. I'm changing the thread tag since I'm 100% certain that this is, in fact, not a bug.
 
Similar threads
Thread starter Title Forum Replies Date
M How to? "PDir" not working the way the I _thought _ the documentation said it does… Support 8
S pdir /(fq) not working Support 5
Phileosophos PDIR to list filenames without extensions? Support 2
vefatica PDIR and streams Support 1
vefatica PDIR with fixed-width unqualified filename? Support 2
W pdir returns diff results between tcc and tcmd - one is an error msg Support 5
thedave pdir /s Support 2
Emilio III pdir /f switch Support 1
D pdir ignores pm Support 2
WadeHatler pdir broken in 19.1 for directories with spaces Support 1
vefatica WAD Nested variable expansion in PDIR's @function[*]? Support 13
mfarah More on pdir's options: /(fq) Support 5
mfarah How to? Getting pdir to display relative paths. Support 2
S PDIR and @LABEL questions Support 4
M How to? PDir on multiple wildcard patterns... Support 2
A pdir function usage Support 3
T How to? dir/pdir - 2nd level down only Support 7
JohnQSmith PDIR and descriptions Support 21
G WAD PDIR @IF bug, @WORD bug Support 8
S WAD PDIR: files with percent sign % in name cause not listing other files in directory Support 9
S WAD PDIR ignores exclusion ranges Support 1
M PDir format question... Support 3
S WAD /Sn mishandled in DIR and PDIR, possibly elsewhere Support 15
S Fixed GPF in PDIR Support 3
S PDIR issue Support 1
M PDir causing Take Command/TCC to crash... Support 6
M A "PDir" issue... Support 16
M A simple question related to the "dir" (and "pdir") commands... Support 5
J pdir /b1 issue Support 20
M Missing PDir option... Support 5
J Maybe Not So Hard Pdir Question Support 1
S PDIR fails in 12.10.55 Support 3
J V12 PDIR failure Support 1
S PDIR command causes GPF Support 5
D pdir inconsistency Support 4
S PDIR has trouble processing filenames with embedded percent sign Support 3
P PDIR woes Support 0
gschizas pdir crashes horribly in one specific folder Support 5
S PDIR question Support 2
R Colored directory listing bug with pdir. Support 1
nickles Bias in PDIR Support 5
F pdir problem Support 3
D can PDIR list full filepaths of docs in a nested folder? Support 13
H @XMLXPATH not working in v28 Support 5
twaterloo FolderMonitor for the 1st time not working Support 5
Tim Rowe NTFS Descriptions not working Support 13
J Batcomp still not working for me in TCMD27 Support 1
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
M Why did BEEP just quit working? Support 12
cgunhouse SETLOCAL not working in BDEBUGGER Support 9

Similar threads