summaryrefslogtreecommitdiff
path: root/bin/spack.bat
diff options
context:
space:
mode:
authorJohn W. Parent <45471568+johnwparent@users.noreply.github.com>2023-06-27 21:26:51 -0400
committerGitHub <noreply@github.com>2023-06-27 18:26:51 -0700
commit78f33bc002816dd690047a7a38077b6ac6617d44 (patch)
treed90f8290c6c5ef2e5f3af69e1373ec4cf318522f /bin/spack.bat
parent25cc7344526f76df1e2c8d7eb0748bccbb8ace63 (diff)
downloadspack-78f33bc002816dd690047a7a38077b6ac6617d44.tar.gz
spack-78f33bc002816dd690047a7a38077b6ac6617d44.tar.bz2
spack-78f33bc002816dd690047a7a38077b6ac6617d44.tar.xz
spack-78f33bc002816dd690047a7a38077b6ac6617d44.zip
Windows: Add PowerShell env support (#37951)
PowerShell requires explicit shell and env support in Spack. This is due to the distinct differences in shell interactions between cmd and pwsh. Add a doskey in pwsh piping 'spack' commands to a powershell script similar to the sh function 'spack'. Add support for PowerShell-specific shell interactions from Spack (set/unset shell variables).
Diffstat (limited to 'bin/spack.bat')
-rw-r--r--bin/spack.bat2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/spack.bat b/bin/spack.bat
index 514c2706d7..9aff863a90 100644
--- a/bin/spack.bat
+++ b/bin/spack.bat
@@ -214,7 +214,7 @@ goto :end_switch
if defined _sp_args (
if NOT "%_sp_args%"=="%_sp_args:--help=%" (
goto :default_case
- ) else if NOT "%_sp_args%"=="%_sp_args: -h=%" (
+ ) else if NOT "%_sp_args%"=="%_sp_args:-h=%" (
goto :default_case
) else if NOT "%_sp_args%"=="%_sp_args:--bat=%" (
goto :default_case