cabal exec not able to find executable by relative path
Open
cabal-install: cmd/exec
type: bug
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
`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!
```
Contributor guide
Assessment
This issue has not been assessed yet.