haskell / haskell/filepath

`System.FilePath.Windows.getSearchPath` misbehaves on unix

Open
#251 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Haskell
Stars
74
Forks
38
PR merge metrics
No merged PRs in 30d

Description

```
ghci> import System.FilePath.Windows
ghci> getSearchPath
["/home/hasufell/.cabal/bin:/home/hasufell/.opam/default/bin:/home/hasufell/.cabal/bin:/home/hasufell/.ghcup/bin:/home/hasufell/.bun/bin:/home/hasufell/.local/bin:/home/hasufell/go/bin:/home/hasufell/.cargo/bin:/home/hasufell/.local/texlive/bin/x86_64-linux:/home/hasufell/.nix-profile/bin:/home/hasufell/.cargo/bin:/home/hasufell/.local/bin:/home/hasufell/bin:/usr/local/bin:/usr/bin:/bin:/home/hasufell/.cabal/bin:/home/hasufell/.cabal/bin:/home/hasufell/.opam/default/bin:/home/hasufell/.cabal/bin:/home/hasufell/.ghcup/bin:/home/hasufell/.bun/bin:/home/hasufell/.local/bin:/home/hasufell/go/bin:/home/hasufell/.cargo/bin:/home/hasufell/.local/texlive/bin/x86_64-linux:/home/hasufell/.nix-profile/bin:/home/hasufell/.cargo/bin:/home/hasufell/.local/bin:/home/hasufell/bin:/usr/local/bin:/usr/bin:/bin"]
```

It appears to use the `getEnv` for the current platform, but then the windows flavored `splitSearchPath`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.