Skip to content

Commit

Permalink
Merge pull request #5797 from kit-ty-kate/fix-win-terminal-detect
Browse files Browse the repository at this point in the history
Fix shell detection on Windows when opam is called via Cygwin's /usr/bin/env even though cmd/powershell is used
  • Loading branch information
kit-ty-kate authored Feb 12, 2024
2 parents 55d45ad + 676365d commit 2122af0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ users)
## Clean

## Env
* Fix shell detection on Windows when opam is called via Cygwin's /usr/bin/env even though cmd/powershell is used [#5797 @kit-ty-kate]

## Opamfile

Expand All @@ -71,6 +72,7 @@ users)

## Build
* Do not check for cppo in the configure script (not used directly anymore since #5498) [#5794 @kit-ty-kate]
* Upgrade vendored cmdliner to 1.2.0 [#5797 @kit-ty-kate]

## Infrastructure
* Fix depexts CI workflow and ensure all workflows run on master push [#5788 @dra27]
Expand Down
1 change: 0 additions & 1 deletion src/core/opamStd.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,6 @@ module OpamSys = struct
Some (Accept (SH_pwsh Powershell))
| "pwsh.exe" -> Some (Accept (SH_pwsh Powershell_pwsh))
| "cmd.exe" -> Some (Accept SH_cmd)
| "env.exe" -> Some (Accept SH_sh)
| "" -> None
| name ->
Option.map
Expand Down
4 changes: 2 additions & 2 deletions src_ext/Makefile.sources
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ MD5_re = 68c427f8b55507f8b61c613ee6a5b3da

$(call PKG_SAME,re)

URL_cmdliner = https://erratique.ch/software/cmdliner/releases/cmdliner-1.1.1.tbz
MD5_cmdliner = 26b9af55a7456290b710e1c96a0ca231
URL_cmdliner = https://erratique.ch/software/cmdliner/releases/cmdliner-1.2.0.tbz
MD5_cmdliner = b860881cc90c68b703dca0f35bdd4cdb

$(call PKG_SAME,cmdliner)

Expand Down

0 comments on commit 2122af0

Please sign in to comment.