From a1e08f009d1520fe75d667d6bfbfc7a32d7c6561 Mon Sep 17 00:00:00 2001
From: Matthias Diener <matthias.diener@gmail.com>
Date: Tue, 14 Aug 2018 02:28:43 -0500
Subject: [PATCH] Csh: fix load/use commands (#8971)

---
 share/spack/csh/spack.csh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/share/spack/csh/spack.csh b/share/spack/csh/spack.csh
index 5acd190449..bf23ab9ff3 100644
--- a/share/spack/csh/spack.csh
+++ b/share/spack/csh/spack.csh
@@ -74,25 +74,25 @@ case unload:
     # tool's commands to add/remove the result from the environment.
     switch ($_sp_subcommand)
         case "use":
-            set _sp_full_spec = ( "`\spack $_sp_flags module find --module-type dotkit $_sp_spec`" )
+            set _sp_full_spec = ( "`\spack $_sp_flags module dotkit find $_sp_spec`" )
             if ( $? == 0 ) then
                 use $_sp_module_args $_sp_full_spec
             endif
             breaksw
         case "unuse":
-            set _sp_full_spec = ( "`\spack $_sp_flags module find --module-type dotkit $_sp_spec`" )
+            set _sp_full_spec = ( "`\spack $_sp_flags module dotkit find $_sp_spec`" )
             if ( $? == 0 ) then
                 unuse $_sp_module_args $_sp_full_spec
             endif
             breaksw
         case "load":
-            set _sp_full_spec = ( "`\spack $_sp_flags module find --module-type tcl $_sp_spec`" )
+            set _sp_full_spec = ( "`\spack $_sp_flags module tcl find $_sp_spec`" )
             if ( $? == 0 ) then
                 module load $_sp_module_args $_sp_full_spec
             endif
             breaksw
         case "unload":
-            set _sp_full_spec = ( "`\spack $_sp_flags module find --module-type tcl $_sp_spec`" )
+            set _sp_full_spec = ( "`\spack $_sp_flags module tcl find $_sp_spec`" )
             if ( $? == 0 ) then
                 module unload $_sp_module_args $_sp_full_spec
             endif
-- 
GitLab