Skip to content

Commit

Permalink
env: disable carriage return for bash/zsh on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed Nov 21, 2023
1 parent 7d95657 commit 073e2f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ users)

## Exec

## Env
* Fix `opam env` containing carriage return on Cygwin [#5715 @rjbou - fix #5684]

## Source

## Lint
Expand Down
1 change: 1 addition & 0 deletions src/client/opamConfigCommand.ml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ let possibly_unix_path_env_value k v =
let rec print_env = function
| [] -> ()
| (k, v, comment) :: r ->
OpamConsole.disable_carriage_return ();
if OpamConsole.verbose () then
OpamStd.Option.iter (OpamConsole.msg ": %s;\n") comment;
if not (List.exists (fun (k1, _, _) -> k = k1) r) || OpamConsole.verbose ()
Expand Down

0 comments on commit 073e2f4

Please sign in to comment.