diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2014-09-29 22:39:36 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2014-09-29 22:39:36 -0700 |
commit | 70475d08c0c05176f9ba8bb36d71dd8b80a40f84 (patch) | |
tree | 8ba80bf51525418d37fa657495003b58dd4d6a32 /share/spack/csh | |
parent | a8ed1ec414c678683628a603a1bb3c76d1319ea6 (diff) | |
download | spack-70475d08c0c05176f9ba8bb36d71dd8b80a40f84.tar.gz spack-70475d08c0c05176f9ba8bb36d71dd8b80a40f84.tar.bz2 spack-70475d08c0c05176f9ba8bb36d71dd8b80a40f84.tar.xz spack-70475d08c0c05176f9ba8bb36d71dd8b80a40f84.zip |
Bugfix for spack cd -h
Diffstat (limited to 'share/spack/csh')
-rw-r--r-- | share/spack/csh/spack.csh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/share/spack/csh/spack.csh b/share/spack/csh/spack.csh index 30c4ec1361..b21da23836 100644 --- a/share/spack/csh/spack.csh +++ b/share/spack/csh/spack.csh @@ -46,8 +46,17 @@ set _sp_spec="" set _sp_modtype = "" switch ($_sp_subcommand) case cd: + shift _sp_args # get rid of 'cd' + + set _sp_arg="" + [ $#_sp_args -gt 0 ] && set _sp_arg = ($_sp_args[1]) shift _sp_args - cd `spack location $_sp_args` + + if ( "$_sp_arg" == "-h" ) then + \spack cd -h + else + cd `\spack location $_sp_arg $_sp_args` + endif breaksw case use: case unuse: |