Shopt: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= * https://bash.cyberciti.biz/bash-reference-manual/Bash-Builtins.html#shopt =Internal= * Bash")
 
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:


* [[Bash#Built-In_Commands|Bash]]
* [[Bash#Built-In_Commands|Bash]]
=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.
<syntaxhighlight lang='bash'>
shopt -s nullglob
</syntaxhighlight>
==expand_aliases==
{{Internal|Bash_Concepts#Aliases|bash Concepts &#124; 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

expand_aliases

bash Concepts | Aliases