- Jun
- 760
- 16
Rex,
Thanks for fixing the regular-expression syntax for the DIR command. Almost everything is working, including the uppercase expressions \D, \W, etc..
However, I don't understand the following with the POSIX character classes, which behave differently when surrounded by double brackets or single brackets. (I used an alias to save typing.)
Perhaps the POSIX expression are supposed to always be used in a character set and not individually, but the various versions seem to behave differently.
Thanks for fixing the regular-expression syntax for the DIR command. Almost everything is working, including the uppercase expressions \D, \W, etc..
However, I don't understand the following with the POSIX character classes, which behave differently when surrounded by double brackets or single brackets. (I used an alias to save typing.)
TCC(30.00.21): C:\temp\sandbox>zz alpha
--------------------
dirx ::[[:alpha:]]:
--------------------
A
a b
b
--------------------
dirx ::[:alpha:]
--------------------
A
a b
TCC(30.00.21): C:\temp\sandbox>zz lower
--------------------
dirx ::[[:lower:]]:
--------------------
a b
b
--------------------
dirx ::[:lower:]
--------------------
TCC: (Sys) The system cannot find the file specified.
"C:\temp\sandbox\::[:lower:]"
Perhaps the POSIX expression are supposed to always be used in a character set and not individually, but the various versions seem to behave differently.
TCC(30.00.21): C:\temp\sandbox>zz alnum
--------------------
dirx ::[[:alnum:]]:
--------------------
1
2
A
a b
b
--------------------
dirx ::[:alnum:]
--------------------
A
a b