Shopt: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
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> | |||
==expand_aliases== | |||
{{Internal|Bash_Concepts#Aliases|bash Concepts | Aliases}} |
Latest revision as of 04:18, 8 January 2021
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