Tcl Source Code

View Ticket
Login
Ticket UUID: 2821897
Title: Not appropiate exit msg in glob cmd
Type: Bug Version: obsolete: 8.5.7
Submitter: rszulgo Created on: 2009-07-15 14:24:01
Subsystem: 36. Pathname Management Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2020-10-08 10:39:44
Resolution: Duplicate Closed By: jan.nijtmans
    Closed on: 2020-10-08 10:39:44
Description:
Executing glob command with repeated 'directroy' switch gives misleading exit message. For example:
input: glob -dir / -dir /home
output: "-directory" cannot be used with "-path"

The same is in -path switch.
User Comments: jan.nijtmans added on 2020-10-08 10:39:44:

Duplicate of [014ade1d44]


stu added on 2018-06-14 13:03:16:
Also with -path.

% glob -path / -path / q
"-path" cannot be used with "-directory"

This situation demands some tests be written.

Attached is a patch that passes the Tcl tests.

Attachments: