Setting Shell Options from the Command-line
In addition to using environmental variables to modify your shell session, you can also use shell options. You would use the set
command to set shell options from either the command-line or from within your shell scripts. You can also use it from the command-line to just view the options that are set.
You can use either the Fedora or the Debian virtual machine for this section. With only one minor exception that concerns a man page, everything will be the same on both of them.
To begin, let’s invoke the set
command without any options or arguments, like so:
[donnie@fedora-server ~]$ set
BASH=/bin/bash
BASHOPTS=checkwinsize:cmdhist:complete_fullquote:expand_aliases:extglob:extquote:force_fignore:globasciiranges:globskipdots:histappend:interactive_comments:login_shell:patsub_replacement:progcomp:promptvars:sourcepath
. . .
. . .
quote_readline ()
{
local ret;
_quote_readline_by_ref "$1" ret...