Make -- a valid command line option and follow the convention of it being the terminator for all options #867
Labels
Component: CLI
Command line flags, exit code handling, ...
Priority: Medium
Wrong or misleading documentation, broken behavior with workaround
Size: Small
Changes to a few localized lines of code (e.g. same function)
Type: Enhancement
Is your feature request related to a problem? Please describe.
This relates to #863. I encountered it when working around the issue of dotfiles not being shown by setting
GLOBIGNORE=".:.."
, then invokingbats *.bats
.ShellCheck rightly pointed out that confusion could occur between command line options and files starting with
--
when using a bare glob.The convention in most GNU utils these days is to allow
--
and assume that this terminates the list of options. Everything past that point is treated as a list of files/directories/items ...Describe the solution you'd like
I would propose to allow for
--
and have it signal the end of the list of options.Describe alternatives you've considered
Currently I am simply using
./*.bats
, which also dodges the issue.The text was updated successfully, but these errors were encountered: