nh2 / nh2/hatrace

procToArgv calls doesFileExist instead of checking for a slash

Abierto
#37 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Haskell
Estrellas
126
Forks
26
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.