Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Glob is not working on Window 7

Closed / Invalid2828270fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2009-07-28 08:31:42
the following expression fails on Windows 7 RC1. it runs properly on windows XP. Cannot check on Windows Vista

glob \{c,d,e\}:/prog*/micro*9.0/vc/bin/cl.exe 

The following expression does work on Windows 7.

glob c:/prog*/micro*9.0/vc/bin/cl.exe

And this issue is just with the drive letter.

the following expression works

glob c:/prog*/{micro,comm}*
dkf Ticket [2828270fff]: 2 changes [History diff]2009-07-28 19:07:56
patthoytsplain2009-08-28 05:50:46
The initial statment is false. When I try it on XP and Windows 7 the result is the same:
% ver
Microsoft Windows XP [Version 5.1.2600]
% glob \{c,u\}:/prog*/micr*vis*/vc*/bin/cl*
no files matched glob pattern "{c,u}:/prog*/micr*vis*/vc*/bin/cl*"

Now Windows 7:
% ver
Microsoft Windows [Version 6.1.7600]
% glob \{c,l\}:/{prog,comm}*/micro*9*/vc/bin/cl.*
no files matched glob pattern "{c,l}:/{prog,comm}*/micro*9*/vc/bin/cl.*"

There is actually a file to be found. Evidently you can't use the {x,y} for the drive part of the path with glob. Checked 8.5.7 and 8.6 HEAD.
patthoyts Pending ticket [2828270fff]. [History diff]2009-08-28 05:50:48
azarooplain2009-08-28 11:52:07
Below is what I get when I run the same set of commands on Windows XP

I may be hazarding a guess by saying that "Maybe you do not have visual studio installed in the given path"?

% ver
Microsoft Windows XP [Version 5.1.2600]
%  puts $tcl_patchLevel
8.5.7
%  glob \{c,u\}:/prog*/micr*vis*/vc*/bin/cl*
{c:Program Files/Microsoft Visual Studio 8/VC/bin/cl.exe} {c:Program Files/Microsoft Visual Studio 8/VC/bin/cl.exe.config} {c:Program Files/Microsoft Visual Studio 8/VC/bin/clsten
cil.exe} {c:Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.exe} {c:Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.exe.config}
%
azaroo Open ticket [2828270fff]. [History diff]2009-08-28 11:52:08
azarooplain2009-10-27 18:58:12
allow_comments - 1

I checked and found the issue to be cygwin. I was working from within cygwin on windows XP and directly on Windows 7 RC1

I am marking this bug as closed.
Please do other actions as required.
Regards
Amit Zaroo
Log in (anonymous is fine) to add a comment.