Ticket UUID: | 014ade1d443142aafe9cf5ba3c271ff870b5c667 | |||
Title: | Misleading error message when using "-path" multiple times with "glob" | |||
Type: | Bug | Version: | 8.6.6 | |
Submitter: | anonymous | Created on: | 2020-10-06 18:50:03 | |
Subsystem: | 36. Pathname Management | Assigned To: | jan.nijtmans | |
Priority: | 5 Medium | Severity: | Minor | |
Status: | Closed | Last Modified: | 2020-10-08 10:40:34 | |
Resolution: | Fixed | Closed By: | jan.nijtmans | |
Closed on: | 2020-10-08 10:40:34 | |||
Description: |
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. | |||
User Comments: |
jan.nijtmans added on 2020-10-08 10:40:34:
Fixed in core-8-6-branch and up now. Thanks for the bug report and patch! patthoyts added on 2020-10-06 19:43:40: See also duplicate issue [2821897] |
Attachments:
- 0001-Amended-the-error-message-when-path-or-directory-are.patch [download] added by anonymous on 2020-10-06 19:12:38. [details]