aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.bashrc_cxx
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-08-14 12:05:38 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2016-08-14 12:05:38 +0200
commit67e6124c951e59e706a6287fa441a6003d351175 (patch)
tree59d490b1412fe27bf200566601b87c7546e0630a /.bashrc_cxx
parentset -o errexit -o nounset -o pipefail in functions (diff)
downloadlinux-home-67e6124c951e59e706a6287fa441a6003d351175.tar.gz
linux-home-67e6124c951e59e706a6287fa441a6003d351175.zip
runc*: bugfix
Diffstat (limited to '')
-rw-r--r--.bashrc_cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/.bashrc_cxx b/.bashrc_cxx
index af11332..cede40b 100644
--- a/.bashrc_cxx
+++ b/.bashrc_cxx
@@ -11,7 +11,7 @@ C_FLAGS=('-Wall' '-Wextra')
runc() (
set -o errexit -o nounset -o pipefail
- local -a c_flags=("${C_FLAGS[@]}")
+ local -a c_flags=("${C_FLAGS[@]+"${C_FLAGS[@]}"}")
local -a src_files
local -a prog_flags
@@ -67,7 +67,7 @@ CXX_FLAGS=('-Wall' '-Wextra' '-std=c++14')
runcxx() (
set -o errexit -o nounset -o pipefail
- local cxx_flags=("${CXX_FLAGS[@]}")
+ local -a cxx_flags=("${CXX_FLAGS[@]+"${CXX_FLAGS[@]}"}")
local -a src_files
local -a prog_flags