Tcl Source Code

View Ticket
Login
Ticket UUID: 977520
Title: glob and windows hardlink problem
Type: Bug Version: obsolete: 8.4.6
Submitter: hetzi Created on: 2004-06-22 14:36:28
Subsystem: 37. File System Assigned To: vincentdarley
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-11-22 20:00:42
Resolution: Works For Me Closed By: vincentdarley
    Closed on: 2004-11-22 13:00:42
Description:
Hi!
Setup:
You've got yourself a windows server and the windows
ressource toolkit (also by microsoft). Then, on that
server, you create a hard link (command linkd) with the
following structure:
Directory: C:\dir1\dir2
linkd C:\dir1\dir2 C:\dir3
Now, make C visible to a windows client
and try to 
glob C:/*/dir2
.
Only the first one will be shown.
glob C:/*
will show both

The whole thing happens when I use the wish
of tcl8.4.6 (ActiveTcl 8.4.6.1).
It works with the tclsh of 8.3.3.

Have fun!
Volker
User Comments: vincentdarley added on 2004-11-22 20:00:42:
Logged In: YES 
user_id=32170

In the absence of further details, closing as unreproducible.

vincentdarley added on 2004-07-14 21:34:52:
Logged In: YES 
user_id=32170

Do links have anything to do with this anymore?  When you
say 'incidentally the first command works too', you mean the
same exact command returns two different values?

Can you provide the actual Tcl code, preferably in the form
of a test which returns the 'wrong' result?

hetzi added on 2004-07-14 18:18:52:
Logged In: YES 
user_id=282030

Hi!
Ok, I tested it with 85a1 (the activetcl beta).
The glob did work indeed,
only now it doesn't find the files in that directory.
Basically,
file L:/dms_current/bin_user/da.sh
returns 0, but
cd L:; cd dms_current; cd bin_user; file exists da.sh
works. Incidentally, after that, the first command works too.
This is repeatable and it was okay in 8.3.3.
As I said, this happens, if L is on a remote windows server.

Anything further I can do th clear this up?
Is there some debug option in tcl for this?

Loads of thanks for your patience!
Volker

vincentdarley added on 2004-07-02 23:46:02:
Logged In: YES 
user_id=32170

Here's what I get in Tcl 8.4.6:

% info pa
8.4.6
(bin) 2 % pwd
C:/ActiveTcl/bin
(bin) 3 % cd C:/
() 4 % file mkdir dir1
() 5 % file mkdir dir1/dir2
() 6 % file link dir3 dir1
dir1
() 7 % glob C:/*/dir2
C:/dir1/dir2 C:/dir3/dir2

So, unless this is some complication with windows server
(about which I know nothing, and nor do I have it available
for testing), then I just don't see the bug at all.

vincentdarley added on 2004-07-02 18:34:22:
Logged In: YES 
user_id=32170

Please test with Tcl 8.5a2.  This works for me.

hetzi added on 2004-07-02 16:39:24:

File Added - 92630: linkd.pdf

Logged In: YES 
user_id=282030

Hi!
I asked my admin about the link-to-directory thing.
Hew dug up an article in the microsoft knowledge base which I'm
uploading now.

I haven't checked the file link command yet.

Lots of Thanks!
Volker

vincentdarley added on 2004-07-01 01:14:36:
Logged In: YES 
user_id=32170

Hm, looking at the linkd documentation, it creates a
symbolic link, as far as I can tell.  You know you can use
'file link' to do just that from Tcl?

vincentdarley added on 2004-07-01 01:07:41:
Logged In: YES 
user_id=32170

All the documentation I've ever read on NTFS, etc, says that
you can only make hard links to files and soft links to
directories.  Are you sure that the thing you've created works?

hetzi added on 2004-06-22 22:15:45:
Logged In: YES 
user_id=282030

The linkd line is wrong.
I want to create dir3 as an alias for dir1 so it must be:
linkd c:\dir3 c:\dir2
.

Sorry.

Attachments: