diff options
author | Erik Schnetter <schnetter@gmail.com> | 2016-01-05 13:09:57 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2016-01-05 13:09:57 -0500 |
commit | 25934200dec1f3f4daaec8aa24116ea4142a6c84 (patch) | |
tree | 447ef68bd06bd954438b59b6d58baf35d8df003f /share | |
parent | be12720eb797e5a3a6031067248035db7d291962 (diff) | |
parent | 0dcc87bd21f511048417923914cde654c7fb895e (diff) | |
download | spack-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-x | share/spack/setup-env.sh | 8 |
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 |