summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-02-11 13:03:47 +0100
committeralalazo <massimiliano.culpo@googlemail.com>2016-02-11 13:03:47 +0100
commite7454132a2d5c8f05f8c4197b4c26e54bf6ebd0b (patch)
tree8a2e60cec83cb803c7cef8ec237ea93fe6c5f909 /share
parent7fc308ed26d7abfcb71af8165523b421a1f315c0 (diff)
parentbcf705b85e82509a5045a52a3420893c5546ee7f (diff)
downloadspack-e7454132a2d5c8f05f8c4197b4c26e54bf6ebd0b.tar.gz
spack-e7454132a2d5c8f05f8c4197b4c26e54bf6ebd0b.tar.bz2
spack-e7454132a2d5c8f05f8c4197b4c26e54bf6ebd0b.tar.xz
spack-e7454132a2d5c8f05f8c4197b4c26e54bf6ebd0b.zip
Merge branch 'develop' of https://github.com/LLNL/spack into packages/espresso
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