[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorrect interpretation of return code
From: |
Matthew Gregg Knepley |
Subject: |
Re: Incorrect interpretation of return code |
Date: |
Tue, 27 Nov 2001 10:11:35 -0500 |
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.
Matt
>
> --
> Alexandre Duret-Lutz