Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3996709bef797bf83c4853e8bbb3b6ca481c1679
Ticket: 391bc0fd2cdd59209201660b95a2d886d24c1825
glob, -nocomplain, -types, and insufficient privileges
User & Date: aspect on 2017-04-29 05:03:21
Changes

  1. icomment:
    To summarise:
    
    % file mkdir a/b a/c
    % file attributes a -permissions 0600
    % file type a/b                             ;# expected error
    could not read "a/b": permission denied
    % set errorCode
    POSIX EACCES {permission denied}
    
    % glob a/*                                  ;# expected
    a/b a/c
    % glob -types hidden a/*                    ;# 1: should be: {a/. a/..}
    no files matched glob pattern "a/*"
    % glob -types d a/*                         ;# 2: should raise {POSIX EACCES}
    no files matched glob pattern "a/*"
    % glob -nocomplain -types d a/*             ;# 3: ??
    %
    
    
    Not quite sure what #3 should do - probably {POSIX EACCES} is best.
    
    Is there a comparable scenario on Windows?
    
  2. login: "aspect"
  3. mimetype: "text/plain"