procToArgv calls doesFileExist instead of checking for a slash
未關閉
enhancement
- 主要語言
- Haskell
- 星號
- 126
- 分支
- 26
- PR 合併指標
- 30 天內沒有已合併 PR
描述
`execvp` work by checking for a slash in the path; if there is a slash, it assumes it is a path (absolute or relative), if there is no slash, it looks it up in PATH.
Therefore the current behaviour of `procToArgv` can be unexpected in that if you run `echo` while having a file called `echo` in current directory, it will run your file, while `execvp` will resolve it through PATH.
Open question: will `execv` accept a relative path? If it will, the fix is easy, if it will not, we’ll also have to resolve relative paths.
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。