bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Incorrect interpretation of return code


From: Akim Demaille
Subject: Re: Incorrect interpretation of return code
Date: 27 Nov 2001 20:32:02 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)

| Alexandre Duret-Lutz (address@hidden) writes:
| > 
| > [...]
| > 
| > |        When missing files are copied into place, the return code of the
| > |system command is misinterpreted. Here is the diff:
| > |
| > |6915c6910
| > |<                     elsif (system ('cp', $am_dir . '/' . $file, 
$errfile))
| > |---
| > |>                 elsif (! system ('cp', $am_dir . '/' . $file, $errfile))
| > 
| > Why do you think so?  System returns 0 on success.
|         Yes, system() returns 0 on success. The original version 1.4 has
| 
| > |>                 elsif (! system ('cp', $am_dir . '/' . $file, $errfile))
| 
| which is incorrect.

Sending a context diff would somewhat help.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]