Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2bd827b08418822527ef6b90bd16f1f411bb4371d9aa32910e8050a4b57ba189
Ticket: 014ade1d443142aafe9cf5ba3c271ff870b5c667
Misleading error message when using "-path" multiple times with "glob"
User & Date: anonymous on 2020-10-06 18:50:03
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Running the invalid command
    
      glob -path /etc -path /usr/share *bash*
    
    will give the following error message:
    
      "-path" cannot be used with "-directory"
    
    The command didn't contain "-directory", however.
    
    What it should really say is something like
      
      "-path" can only be given once
    
    or
    
      at most one instance of "-path" can be given
    
    The same problem occurs when using "-directory" twice:
    
      % glob -directory /etc -directory /usr/share *bash*
      "-directory" cannot be used with "-path"
    
    Discussion of this issue on the IRC channel already revealed that the error is in tclFileName.c, line 1309, in core-8-6-6.
    
  5. foundin changed to: "8.6.6"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "b0023a032b39bf3293cac200ed7049f93754ec84"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "16. Commands A-H"
  15. title changed to:
    Misleading error message when using "-path" multiple times with "glob"
    
  16. type changed to: "Bug"