"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
>>>>> "Jason" == Jason R Mastaler
<jason(a)mastaler.com> writes:
Jason> "Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
>> Jason's example is bogus here; the invocation of /tmp/emptyfile
>> succeeds! (At least on Linux, under ash, bash, and csh.)
Jason> Bogus? Emacs should silently succeed in this case? If for
Jason> some reason /usr/sbin/sendmail got truncated, you'd lose
Jason> mail until you happened to notice this.
OK, you got me. Emacs should not silently succeed. ("In an ideal
world", but see Kyle's explanation of why sendmail-send-it has always
ignored sendmail return values.) But...
... the "easy test" (exec from the command line) succeeds in the sense
of returning 0.
What's going on here? Should we change call-process-*?
Try calling emptyfile using execle() in C, it fails. Calling it from
shells succeeds though. It seems like call-process-* somehow invokes
the shell and then the command (since it returns 0 when invoking an
empty file).
(call-process "/tmp/emptyfile") should not return 0 IMHO.