haskell / haskell/cabal

`cabal exec` does not accept relative or absolute paths

Open
#9,996 0 comments 0 reactions 0 assignees View on GitHub
cabal-install: cmd/exec type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**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
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the provided foo.sh commands and the reported Cabal version, then trace the cabal exec entry point and its handling of the program path. Done means cabal exec accepts both ./foo.sh and an absolute path and runs the script successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.