summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2016-02-12 12:55:26 -0500
committerErik Schnetter <schnetter@gmail.com>2016-02-12 12:55:26 -0500
commit64436e77524f317811e27cf4a269b659de441892 (patch)
tree3268a403b687736413e172e7957480ba41a62c16 /share
parent9017ec5865615f3e1505501f1eb9b30000e217e9 (diff)
parentbcf705b85e82509a5045a52a3420893c5546ee7f (diff)
downloadspack-64436e77524f317811e27cf4a269b659de441892.tar.gz
spack-64436e77524f317811e27cf4a269b659de441892.tar.bz2
spack-64436e77524f317811e27cf4a269b659de441892.tar.xz
spack-64436e77524f317811e27cf4a269b659de441892.zip
Merge branch 'develop' into correct-cc
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/setup-env.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/share/spack/setup-env.sh b/share/spack/setup-env.sh
index 47202f6087..586a5b836b 100755
--- a/share/spack/setup-env.sh
+++ b/share/spack/setup-env.sh
@@ -55,13 +55,11 @@
# avoids the need to come up with a user-friendly naming scheme for
# spack dotfiles.
########################################################################
+
function spack {
# save raw arguments into an array before butchering them
- args=()
- for a in "$@"; do
- # yup, this is awful, blame bash2 compat
- args=("${args[@]}" "$a")
- done
+ args=( "$@" )
+
# accumulate initial flags for main spack command
_sp_flags=""
while [[ "$1" =~ ^- ]]; do