Skip to content

System.FilePath.Windows.getSearchPath misbehaves on unix #251

Open
@hasufell

Description

@hasufell
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions