diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-08-14 11:42:56 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-08-14 11:42:56 +0200 |
commit | 3b713427c07f042852c826efb0010e4bb3404b0c (patch) | |
tree | 664918bc4a11cab4f5ac9894e7b16a083f03e2a2 /.bashrc_cxx | |
parent | export PYTHONSTARTUP (diff) | |
download | linux-home-3b713427c07f042852c826efb0010e4bb3404b0c.tar.gz linux-home-3b713427c07f042852c826efb0010e4bb3404b0c.zip |
set -o errexit -o nounset -o pipefail in functions
Diffstat (limited to '')
-rw-r--r-- | .bashrc_cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/.bashrc_cxx b/.bashrc_cxx index 6945590..af11332 100644 --- a/.bashrc_cxx +++ b/.bashrc_cxx @@ -9,11 +9,11 @@ fi C_FLAGS=('-Wall' '-Wextra') runc() ( - set -o errexit + set -o errexit -o nounset -o pipefail local -a c_flags=("${C_FLAGS[@]}") - local -a src_files=() - local -a prog_flags=() + local -a src_files + local -a prog_flags while [ "$#" -gt 0 ]; do case "$1" in @@ -65,11 +65,11 @@ runc() ( CXX_FLAGS=('-Wall' '-Wextra' '-std=c++14') runcxx() ( - set -o errexit + set -o errexit -o nounset -o pipefail local cxx_flags=("${CXX_FLAGS[@]}") - local -a src_files=() - local -a prog_flags=() + local -a src_files + local -a prog_flags while [ "$#" -gt 0 ]; do case "$1" in |