Hi,

Am Dienstag, 20. Nov 2007, 16:29:28 +0900 schrieb Yukihiro Matsumoto:
> In message "Re: Change in system() behaviour"
>     on Tue, 20 Nov 2007 04:07:55 +0900, Dave Thomas <dave / pragprog.com> writes:
> |In 1.8,  system("badcmd")  returned false.
> |In 1.9, it raises Errno::ENOENT
> |
> |Is this an intended change?
> 
> Yes.  The command execution has tree states:
> 
>   * command execution failed (non zero exit status)
>   * command execution succeeded (zero exit status)
>   * command not found

A thing that didn't change as far as I see is the quite obscure decision
when plain execl() is to be called and when it is prefixed by
"/bin/sh -c ". A binary named "find|head" is assumed to not be found as
binary in the path but execution will succeed.

I would be much happier if execl() would be clearly distinct from
the subshell call.

Bertram

-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de