Skip to content

Commit

Permalink
Do not special case the rewriting rule for the PKG_CONFIG_PATH enviro…
Browse files Browse the repository at this point in the history
…nment variable
  • Loading branch information
kit-ty-kate committed Jun 7, 2024
1 parent cab5c2e commit d9ce36f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/pages/Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ The `<path-format>` defines the way to handle variables path formatting:
any entries which include the separator character.

If a variable is not mentioned in `x-env-path-rewrite`, the separator is assumed to be `;` on Windows and `:` on all other systems; no slash or quoting transformations are performed. There are two special default cases:
* `PKG_CONFIG_PATH` uses `:` separator and is `target-quoted`
* `MANPATH` uses `:` separator and is `host`
* `PATH` on Windows uses `;` separator and is `target-quoted`

For example, on Windows:
Expand Down
2 changes: 1 addition & 1 deletion src/state/opamEnv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let default_sep_fmt_str var =
match String.uppercase_ascii var with
| "PATH" when Sys.win32 ->
SSemiColon, Target_quoted
| "PKG_CONFIG_PATH" | "MANPATH" ->
| "MANPATH" ->
SColon, Host
| _ -> default_separator, default_format

Expand Down

0 comments on commit d9ce36f

Please sign in to comment.