git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 3/5] run-command: Elaborate execvp error checking

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 25, 2012, 19:22 UTC
Message-ID
<20120125192222.GH1824@burratino>
In-Reply-To
<op.v8motzak0aolir@keputer>
Frans Klaver wrote:
> Jonathan Nieder wrote:
Show 7 quoted lines
>> Could you give an example?
>
> The case that triggered me to work on this. I had an incorrect entry
> in my PATH and some aliasing tests failed. The generated command
> output was something like
>
> fatal: script: Access Denied

Sorry for the lack of clarity. I meant that a (precise) "before and after" example could make the commit message a lot easier to understand.

[...]
>> What happens on Windows?
>
> I haven't changed anything on the windows side, so that probably
> sticks to the old behavior.

This was mostly a comment on the change description --- unless I look at the patch, if I try this out on Windows after reading the changelog I would end up utterly confused. For patch 5/5, it also brings up worries about consistency --- if systems are going to be relying on a missing #! interpreter being treated differently from a missing script for the sake of silent_exec_failure, do the same considerations apply on Windows, too?

Perhaps it's more along the lines of "this is not supposed to happen in practice, and when it does, humans will find it easier to debug if we error out hard instead of falling back to the 'if the command does not exist' behavior (e.g., by trying an alias next)". In other words, maybe this is intended as an optional nicety rather than something scripts would ever rely on.

Jonathan
Previous: Frans KlaverNext: Frans Klaver
Message 15 of 31 in “Add execvp failure diagnostics”
  1. 0/6 Add execvp failure diagnosticsFrans Klaver, Jan 24, 2012
  2. 1/5 t0061: Fix incorrect indentationFrans Klaver, Jan 24, 2012
  3. Junio C HamanoJan 24, 2012
  4. Jonathan NiederJan 24, 2012
  5. Frans KlaverJan 25, 2012
  6. Junio C HamanoJan 25, 2012
  7. Frans KlaverJan 25, 2012
  8. Frans KlaverJan 25, 2012
  9. 2/5 t0061: Add testsFrans Klaver, Jan 24, 2012
  10. Jonathan NiederJan 24, 2012
  11. Frans KlaverJan 25, 2012
  12. 3/5 run-command: Elaborate execvp error checkingFrans Klaver, Jan 24, 2012
  13. Jonathan NiederJan 24, 2012
  14. Frans KlaverJan 25, 2012
  15. Jonathan NiederJan 25, 2012
  16. Frans KlaverJan 25, 2012
  17. Johannes SixtJan 25, 2012
  18. Frans KlaverJan 25, 2012
  19. 4/5 run-command: Warn if PATH entry cannot be searchedFrans Klaver, Jan 24, 2012
  20. 5/5 run-command: Error out if interpreter not foundFrans Klaver, Jan 24, 2012
  21. Jonathan NiederJan 24, 2012
  22. Frans KlaverJan 25, 2012
  23. Johannes SixtJan 25, 2012
  24. Frans KlaverJan 25, 2012
  25. Junio C HamanoJan 26, 2012
  26. Frans KlaverJan 27, 2012
  27. Jonathan NiederJan 27, 2012
  28. Frans KlaverJan 27, 2012
  29. Jonathan NiederJan 27, 2012
  30. Frans KlaverJan 27, 2012
  31. Frans KlaverFeb 4, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.