Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Bash (Unix shell)
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Settings and Shell Options ==== ===== The <code>set</code> Built-in ===== * Xtrace: [ <code>set -x</code> | <code>set -o xtrace</code> ] The shell's primary means of debugging. Both xtrace and verbose can be turned off at the same time with the command <code>set -</code>. * Verbose: [ <code>set -v</code> | <code>set -o verbose</code> ] Prints a command to the terminal as Bash reads it. Bash reads constructs all at once, such as compound commands which include if-fi and case-esac blocks. If a <code>set -v</code> is included within a compound command, then "verbose" will be enabled the next time Bash reads code as input, i.e., after the end of the currently executing construct.<ref>{{Cite mailing list |mailing-list=bug-bash |date=20 April 2021 |title=bug-bash archives, Re: Document that set -v inside case statements is special |url=https://lists.gnu.org/archive/html/bug-bash/2021-04/msg00172.html }}</ref> Both xtrace and verbose can be turned off at the same time with the command <code>set -</code>. ===== The <code>shopt</code> Built-in ===== * expand-aliases On by default in interactive shells. Some developers discourage its use in scripts. <!-- === Localization === '''+++ Environment Variables beginning with <code>LC_*</code> ''' '''+++ Locale-specific Expansion <code>$"..."</code>''' --><!-- === Reporting the Time === '''+++ <code>SECONDS</code>, <code>EPOCHSECONDS</code> and <code>EPOCHREALTIME</code>''' '''+++ The <code>printf</code> Builtin (and not the Binary)''' '''+++ The <code>date</code> Binary and <code>LC_TIME</code>''' --><!-- === Command History === --><!-- === Tab Completion === -->
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Bash (Unix shell)
(section)
Add topic