Menu

#2774 glob and windows hardlink problem

obsolete: 8.4.6
closed-works-for-me
5
2004-11-22
2004-06-22
No

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

Discussion

  • Volker Hetzer

    Volker Hetzer - 2004-06-22

    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.

     
  • Vince Darley

    Vince Darley - 2004-06-30

    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?

     
  • Vince Darley

    Vince Darley - 2004-06-30

    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?

     
  • Volker Hetzer

    Volker Hetzer - 2004-07-02

    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

     
  • Volker Hetzer

    Volker Hetzer - 2004-07-02
     
  • Vince Darley

    Vince Darley - 2004-07-02

    Logged In: YES
    user_id=32170

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

     
  • Vince Darley

    Vince Darley - 2004-07-02
    • status: open --> pending-works-for-me
     
  • Vince Darley

    Vince Darley - 2004-07-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.

     
  • Volker Hetzer

    Volker Hetzer - 2004-07-14
    • status: pending-works-for-me --> open-works-for-me
     
  • Volker Hetzer

    Volker Hetzer - 2004-07-14

    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

     
  • Vince Darley

    Vince Darley - 2004-07-14

    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?

     
  • Vince Darley

    Vince Darley - 2004-11-22
    • status: open-works-for-me --> closed-works-for-me
     
  • Vince Darley

    Vince Darley - 2004-11-22

    Logged In: YES
    user_id=32170

    In the absence of further details, closing as unreproducible.

     
MongoDB Logo MongoDB