Skip to content

cabal exec not able to find executable by relative path #4063

Open
@abooij

Description

@abooij

cabal exec is not able to find executables in the same directory as the project.

$ vim test.c   # write a hello world executable
$ cabal sandbox init
$ cabal install   # unrelated project
$ gcc -o hello_world test.c
$ ./hello_world
Hello world!
$ cabal exec ./hello_world
cabal: The program './hello_world' is required but it could not be found.
$ cabal exec $(pwd)/hello_world
Hello world!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions