Hacker News new | ask | show | jobs
by deathanatos 1533 days ago
I'd expect the same as any other failure from execv(2). Something like,

  zsh: Exec format error: empty-file
  (last command returned 127.)
(127 is the exit status for other failures, so I've used it here. The second line is intended to be part of my PS1, the first zsh's normal reporting. The string used here is what I get from perror() for that code.)
1 comments

Okay, yeah. That could be useful. Seems POSIX forces the behavior described in the blog post. Time to change the standard!