[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorrect interpretation of return code
From: |
Alexandre Duret-Lutz |
Subject: |
Re: Incorrect interpretation of return code |
Date: |
27 Nov 2001 10:01:56 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 |
[...]
| 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.
--
Alexandre Duret-Lutz