Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c147db5742c61f1c70ba800e9ddb6472156dfebc
Ticket: 971976ffffffffffffffffffffffffffffffffff
Inconsistent naming in [file exists]
User & Date: dkf on 2004-07-08 16:10:54
Changes

  1. icomment:
    Logged In: YES 
    user_id=79902
    
    This is *different* from the underlying API on Unix where
    foo/ does not exist unless foo is a directory or a symlink
    to a directory.
    
    FWIW, here's the C program (I'm not using Tcl to test this
    because I do not trust Tcl's behaviour here entirely at the
    moment) I used to test this:
      #include <unistd.h>
      #include <stdio.h>
      int main(int argc, char **argv) {
          if (access(argv[1], F_OK) == 0) {
              printf("%s exists\n", argv[1]);
          } else {
              fprintf(stderr, "%s ", argv[1]);
              perror("non-existant");
          }
      }
    
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"