Subject: | Should be more like sh(1) and less like glob(3) |
Regexp::Shellish supports *,?,**,...,{} and [] but that is more like
glob(3) or fnmatch(3), not sh(1), specifically it leaves out:
*(pattern|...|pattern)
=> pattern|...|pattern)*
+(pattern|...|pattern)
=> (pattern|...|pattern)+
?(pattern|...|pattern)
=> (pattern|...|pattern)?
@(pattern|...|pattern)
=> (pattern|...|pattern)
!(pattern|...|pattern)
=> (?!(?:pattern|...|pattern) ... almost
(these could be turned off by default and enabled when option extglob is
set, a la bash)
in addition it passes (pattern|...|pattern) through unmodified by
default when it should assume parens=>0 unless the parentheses are
preceded by *,+,?,@ or !