Shopt: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 16: | Line 16: | ||
If set, bash allows filename patterns which match no files to expand to a null string, rather than themselves. | If set, bash allows filename patterns which match no files to expand to a null string, rather than themselves. | ||
<syntaxhighlight lang='bash'> | |||
shopt -s nullglob | |||
</syntaxhighlight> |
Revision as of 02:09, 29 April 2020
External
Internal
Overview
Toggle the values of variables controlling optional shell behavior, or lit all settable options, with an indication of whether or not each is set (-s means set, -u means unset).
Options
nullglob
If set, bash allows filename patterns which match no files to expand to a null string, rather than themselves.
shopt -s nullglob