I have seen
-- used in the
compgen -W "foo bar baz" -- b
What is the meaning of the
More precisely, a double dash (
Example use: lets say you want to grep a file for the string "-v" - normally "-v" will be considered the option to reverse the matching meaning (only show lines that do not match), but with
This marks end of parameter (option) list.