nh2 / nh2/hatrace

procToArgv calls doesFileExist instead of checking for a slash

Aberta
#37 0 comentários 0 reações 0 responsáveis Ver no GitHub
enhancement
Linguagem predominante
Haskell
Estrelas
126
Forks
26
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.