summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2016-01-05 13:09:57 -0500
committerErik Schnetter <schnetter@gmail.com>2016-01-05 13:09:57 -0500
commit25934200dec1f3f4daaec8aa24116ea4142a6c84 (patch)
tree447ef68bd06bd954438b59b6d58baf35d8df003f /share
parentbe12720eb797e5a3a6031067248035db7d291962 (diff)
parent0dcc87bd21f511048417923914cde654c7fb895e (diff)
downloadspack-25934200dec1f3f4daaec8aa24116ea4142a6c84.tar.gz
spack-25934200dec1f3f4daaec8aa24116ea4142a6c84.tar.bz2
spack-25934200dec1f3f4daaec8aa24116ea4142a6c84.tar.xz
spack-25934200dec1f3f4daaec8aa24116ea4142a6c84.zip
Merge branch 'develop' into eschnett/openssl-darwin
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