summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-01-26 08:59:25 +0100
committeralalazo <massimiliano.culpo@googlemail.com>2016-01-26 08:59:25 +0100
commit6f11a64af5b994b31100e0313c25dfb4f6227255 (patch)
tree35949b8c513849b4bee4b0c2b73e6f9fd1b58084 /share
parentd95d169ac50a3c253ef9712782626af1e1610ca7 (diff)
parent1a5270023803303f07db507fa36139fb52111b9d (diff)
downloadspack-6f11a64af5b994b31100e0313c25dfb4f6227255.tar.gz
spack-6f11a64af5b994b31100e0313c25dfb4f6227255.tar.bz2
spack-6f11a64af5b994b31100e0313c25dfb4f6227255.tar.xz
spack-6f11a64af5b994b31100e0313c25dfb4f6227255.zip
Merge branch 'develop' of https://github.com/LLNL/spack into refactoring/resource_directive
Conflicts: lib/spack/spack/fetch_strategy.py lib/spack/spack/mirror.py lib/spack/spack/package.py
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