nh2 / nh2/hatrace

procToArgv calls doesFileExist instead of checking for a slash

Đang mở
#37 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Haskell
Star
126
Fork
26
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.