nh2 / nh2/hatrace

procToArgv calls doesFileExist instead of checking for a slash

オープン
#37 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。