Re:Studio Ghibli releases 400 free-to-use images
by account42 on Thursday September 24, 2020 @03:25AM
(#24576189)
> nitpick: often mistaken for globbing
What exactly would you call globbing if not the feature that is controlled using the nullglob, failglob, nocaseglob and dotglob options as well as the GLOBIGNORE variable.
Re:Studio Ghibli releases 400 free-to-use images
by lloeki on Thursday September 24, 2020 @04:03AM
(#24576408)
Globbing has an ambivalent definition given that it’s mostly used for filename matches (especially given its origin as the glob command), but it’s really a specific form of pattern matching using wildcards such as * and ?, it need not apply only to filenames or paths on the filesystem: this matching is also used to match strings in case/in/esac constructs and test’s == !=
https://www.gnu.org/software/bash/manual/bash.html#Condition...
I guess one could say globbing is applying this pattern matching to filter a list.
https://www.gnu.org/software/bash/manual/html_node/Brace-Exp...
You may also be interested in yet another powerful feature that is parameter expansion:
https://www.gnu.org/software/bash/manual/html_node/Shell-Par...
Filename expansion (nitpick: often mistaken for globbing) is performed last:
https://www.gnu.org/software/bash/manual/html_node/Filename-...