What is Shopt in Bash
Next:15.4.2 sourceUp:15.4 Further built-in commands of the Previous:15.4 Other built-in commands of the
The command shows and changes the status of the variables for controlling the optional functions of bash. shopt [OPTIONS] [OPTION VARIABLES LIST]
The list of variables and their meaning can be found in the manual page for Bash ().
22.214.171.124 ExampleThe command without parameters shows the status of the variable. ole @ enterprise: ~> shopt cdable_vars off cdspell off checkhash off checkwinsize on cmdhist on dotglob off execfail off expand_aliases on extglob on histreedit off histappend off histverify off hostcomplete on huponexit off interactive_comments on lithist off mailwarn off no_comments on lithist off mailwarn off no_complety offcmdocompas prompt nv_complety offcmdocompas on restricted_shell off shift_verbose off sourcepath on xpg_echo off ole @ enterprise: ~> shopt sourcepath sourcepath on
With and the variables are set and switched off again.ole @ enterprise: ~> shopt -u sourcepath ole @ enterprise: ~> shopt sourcepath sourcepath off ole @ enterprise: ~> shopt -s sourcepath ole @ enterprise: ~> shopt sourcepath sourcepath on
Next:15.4.2 sourceUp:15.4 Other built-in commands of the Previous:15.4 Other built-in commands of the
- Why do most DJs wear black?
- How reliable are BMW engines
- What are the names of life
- What is a good score for PSAT
- How do you optimize intestinal health
- Which programs should I use for screencasts?
- Are silkworms cooked alive
- What are the preppy hobbies
- How dangerous are squid bites
- Is humanity all about sex?
- Why are some people afraid of color
- What are some good ideas for farewell parties
- Is Chernobyl still uninhabitable?
- How popular is Google's Material Design
- Do you think pop quizzes are fair
- Using Quora is a waste of time
- What is quantum gravity and quantum space
- Will I grow to be 61 or 62
- What do different religions say about clairvoyants
- What happens when urea is heated slightly
- What is a DR Interest Discount
- What is the most boring apocalyptic scenario
- What are symptoms of rumination disorder
- Why did I throw up after eating