Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rafal Bogdanowicz
linuxcommandline
Commits
a14ebf4a
Commit
a14ebf4a
authored
Jan 17, 2017
by
Toby Hodges
Browse files
added paragraph on set -/+e
parent
257c6a2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
linux_intermediate/basic_scripting.rst
View file @
a14ebf4a
...
...
@@ -845,6 +845,12 @@ echoing each command before executing it. This option can be :index:`set` and :
during runtime with ``set -x`` / ``set +x`` (sh/bash) and ``set echo`` / ``unset echo``
(csh/tcsh).
It can also be helpful to ``set -e`` / ``set +e``, which will cause the script to exit
immediately, if any of the commands within it fails (returns non-zero exit status)
during execution. This can save you waiting to the end of execution when some
intermediate step has failed, and also help to identify at exactly which step your
workflow is breaking.
Command Substitution
--------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment