Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c785c6d8b1b46a74a47e5d7bb43c70778d407527150f0b4de9e0fd07bf387201
Ticket: 3e25ac512e9eeb8788028264c400238fcf425238
[file] inconsistent handling of VFS/..
User & Date: aspect on 2018-06-15 15:14:34
Changes

  1. icomment:
    As for what should happen, my opinion is that:
    
    % file exists /bin/sh/..
    0
    
    is correct.  This is in line with shell:
    
    $ [ -e /bin/sh/.. ] && echo true || echo false
    false
    
    .. or C: access("/bin/sh/..", F_OK) == 1 .. or other scripting languages.
    
    
    The tclkit case is special:  if tclkit mounts a vfs at [info nameofexe] then:
    
    % file isdirectory [info nameofexe]
    1
    
    hence:
    
    % file exists [info nameofexe]/..
    1
    
  2. login: "aspect"
  3. mimetype: "text/plain"