Merge pull request #1285 from behnam/patch-1

Update bash.md
This commit is contained in:
Rico Sta. Cruz 2019-12-18 13:30:55 +11:00 committed by GitHub
commit 33581a946a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

10
bash.md
View File

@ -535,11 +535,11 @@ set -o nounset # Exposes unset variables
### Glob options
```bash
set -o nullglob # Non-matching globs are removed ('*.foo' => '')
set -o failglob # Non-matching globs throw errors
set -o nocaseglob # Case insensitive globs
set -o globdots # Wildcards match dotfiles ("*.sh" => ".foo.sh")
set -o globstar # Allow ** for recursive matches ('lib/**/*.rb' => 'lib/a/b/c.rb')
shopt -s nullglob # Non-matching globs are removed ('*.foo' => '')
shopt -s failglob # Non-matching globs throw errors
shopt -s nocaseglob # Case insensitive globs
shopt -s dotglob # Wildcards match dotfiles ("*.sh" => ".foo.sh")
shopt -s globstar # Allow ** for recursive matches ('lib/**/*.rb' => 'lib/a/b/c.rb')
```
Set `GLOBIGNORE` as a colon-separated list of patterns to be removed from glob