Misleading error message when using "-path" multiple times with "glob"
Closed / Fixed014ade1d443142aafe9cf5ba3c271ff870b5c667Created 6 years agoUpdated 6 years ago
Descriptionplain2020-10-06 18:50:03
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.
Referenced by3
6547d4575d(cherry-pick): Fix [014ade1d44]: Misleading error message when using "-path" multiple times with "glob". Also fix a few (harmless) -Wundef warnings check-in2020-10-09 07:10:22ea58e62652Closed ticket [2821897fff]: Not appropiate exit msg in glob cmd plus 7 other changes ticket2020-10-08 10:39:4440e8ce43cdFix [014ade1d44]: Misleading error message when using "-path" multiple times with "glob" check-in2020-10-08 09:13:57
patthoyts Ticket [014ade1d44]: 3 changes
[History diff]2020-10-06 19:38:15
patthoytswiki2020-10-06 19:43:40
See also duplicate issue [2821897]
jan.nijtmanswiki2020-10-08 10:40:34
Fixed in core-8-6-branch and up now. Thanks for the bug report and patch!
Log in (anonymous is fine) to add a comment.