Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 22fcc014b58f01c720fe088c93e49e7ec5eff073
Ticket: 3551313fffffffffffffffffffffffffffffffff
Cygwin file exists failure
User & Date: dkf on 2013-09-24 22:07:55
Changes

  1. assignee changed to: "aku"
  2. closedate changed to: "2456560.42217528"
  3. closer changed to: "dkf"
  4. comment changed to:
    Using 8.5.11 Cygwin package on Win7 64-bit; Cygwin recently moved from Insight Tcl/Tk 8.4,
    
    I'm able to hang it by asking about non-existent files/directories on the filesystem:
    
    $ tclsh
    % set a [file exists /cygdrive ]
    1
    % set a [file exists /cygdrive2 ]
    (hangs, must ctrl-c, should report 0)
    
    
    $ tclsh
    % set a [file exists /gffg ]
    (hangs, must ctrl-c, should report 0)
    
    
    $ tclsh
    % set a [file exists /bin ]
    1
    % set a [file exists /usr ]
    1
    % set a [file exists /banana ]
    0
    % set a [file exists /gffg ]
    (hangs, must ctrl-c, should report 0)
    
    aim of using file exists /cygdrive was to reliably detect Cygwin, as 
        } elseif {[string equal [tk windowingsystem] win32]} {
          # Tcl on Windows - grey
    is no longer reliable, as it returns X11.
    
    and I'm also seeing some Tk oddities with e.g. inconsistent tiling of PhotoImages and abutting edges in my app that aren't present on other platforms (and haven't been in over a decade of cross-platform maintenance).
    
  5. login: "dkf"
  6. mimetype: "text/plain"
  7. severity changed to: "Minor"
  8. status changed to: "Closed"