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).
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
wildcards × 1194bash × 449
shell × 308
shell-script × 131
zsh × 119
files × 98
find × 93
ls × 85
regular-expression × 69
command-line × 66
filenames × 64
quoting × 64
grep × 62
linux × 42
rm × 34
directory × 30
rsync × 26
awk × 23
tar × 23
cp × 23
sed × 22
pattern-matching × 22
rename × 19
recursive × 19
scripting × 18