haskell / cabal

Official upstream development repository for Cabal and cabal-install
https://haskell.org/cabal
Other
1.57k stars 676 forks source link

`cabal exec` does not accept relative or absolute paths #9996

Open sol opened 3 weeks ago

sol commented 3 weeks ago

To Reproduce

$ echo "echo foo" > foo.sh
$ chmod +x foo.sh
$ ./foo.sh
foo
$ cabal exec ./foo.sh
Error: [Cabal-6666]
The program './foo.sh' is required but it could not be found.
$ cabal --version
cabal-install version 3.11.0.0
compiled using version 3.11.0.0 of the Cabal library