Search exams, classes and guides
Search...
English
Sign in
Sign in
Home
Practice
Discover
Performance
More
CompTIA Linux+ XK0-006
Automation, Orchestration, and Scripting
Card 35 of 113
35 / 113
In a Bash script, a function can be called before its definition appears in the file, because Bash reads the entire scr…
Front
In a Bash script, a function can be called before its definition appears in the file, because Bash reads the entire script and registers every function before executing the first command.
Back
Bash reads and executes a script line by line, so a function exists only after its definition has been executed. Calling it earlier in the file fails with "command not found"; the definition must come before the first call.
Show the back
Press the card to see the back
Study this deck