Bash (Unix shell): Difference between revisions

Content deleted Content added
Data structures: Change subsection name
The {{mono|source}} builtin: source is not exclusive to non-executable files; remove extra extra trivia and add reference
Line 1,114:
[ ] scripts execute the contents of a file in a subshell
-->
With the {{code| source}}, or synonymous {{code| .}}, command, Bash can readreads and executeexecutes shell commands from filesa whichfile areby notname.<ref markedname="gnuBuiltin">{{cite asweb executable,|title=4.1 whichBourne doShell notBuiltins have hash|url=https://www.gnu.org/software/bash/manual/html_node/Bourne-bangs,Shell-Builtins.html and|website=4 whichShell doBuiltin notCommands have|publisher=[[Free theSoftware fileFoundation, extensionInc.]] {{mono|access-date=August .sh25, 2025}}.</ref>
Such files are known as "source files" or "dotfiles."
In Unix, file names which begin with a "dot," such as {{mono| ~/.bashrc}} are considered "[[Hidden file and hidden directory |hidden files]]."
 
=== 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> ===