1 vote

Matching negative patterns with bash extglob

I'd say the second expression fails because item* matches the entire filename for each of these files, and the empty string at the end trivially matches !(more).
muru's user avatar
  • 71.3k

Only top scored, non community-wiki answers of a minimum length are eligible