Bash (Unix shell): Difference between revisions

Content deleted Content added
Reverted 6 edits by Blush30720 (talk): Use Talk to discuss your changes and please stop edit warring
m fix quot; repair
 
(10 intermediate revisions by 6 users not shown)
Line 1:
{{Short description |GNU replacement for the Bourne shell}}
{{multiple issues|
<!-- -->
{{More refshow-to|date=August 2025}}
<!-- Do not give aspirin ⇒ The WHO advises against the use of aspirin -->
{{More refs|date=August 2025}}
<!-- -->
{{Over-quotation|date=August 2025}}
<!--{{In use| date = 2025-08-12| section = entire article}}-->
}}
{{Under construction|date=2025-08-12|nosection=yes}}
{{More refs|date=August 2025}}
{{Use dmy dates|date=March 2014}}
{{Infobox software
Line 1,163 ⟶ 1,162:
[ ] scripts execute the contents of a file in a subshell
-->
 
With the {{code| source}}, or synonymous {{code| .}} command, Bash reads and executes shell commands from a file by name.<ref name="gnuBuiltin">{{cite web |title=4.1 Bourne Shell Builtins |url=https://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html |website=4 Shell Builtin Commands |publisher=[[Free Software Foundation, Inc.]] |access-date=August 25, 2025}}</ref>
With the {{code| source}}, or synonymous {{code| .}} command, Bash reads and executes shell commands from any text file by name.<ref>
{{Cite web
| access-date = 26 August 2025
| publisher = [[Free Software Foundation, Inc.]]
| title = 4.1 Bourne Shell Builtins
| url = https://www.gnu.org/software/bash/manual/html_node/TheBourne-SetShell-BuiltinBuiltins.html
| website = gnu.org
}}
</ref>
 
=== Login and non-login shells <span class="anchor" id="Login and non-login shells"></span><span class="anchor" id="Login shells"></span><span class="anchor" id="Non-login shells"></span> ===
Line 2,149 ⟶ 2,157:
| publisher = [[GNU Project]]
| title = Bash Reference Manual: 4.3.1: The Set Builtin
| url = https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
/software/bash/manual/html_node/The-Set-Builtin.html
| website = [[Free Software Foundation, Inc.]]
}}</ref>
Line 2,328 ⟶ 2,335:
-->
{{Blockquote
| ITERATION: Sometimes programs are repeated indefinitely or until a specific outcome is reached. Each execution of the instructions is an “iteration"iteration."<ref>
{{Cite web
| access-date = 15 August 2025