EXIT
Kenneth Brody
kenbrody at spamcop.net
Mon Mar 9 06:06:05 PDT 2015
On 3/6/2015 6:58 PM, Fairlight wrote:
> On Fri, Mar 06, 2015 at 06:16:38PM -0500, Kenneth Brody thus spoke:
>> On 3/6/2015 5:02 PM, Fairlight wrote:
>>> Not unless system() has a return code, and probably not even then, since a
>>> shell sits between the two instances.
>>
>> That's the purpose of the SYSTEM() function, as opposed to the
>> SYSTEM command. (If it didn't return the exit value, what would be
>> its purpose?)
>
> Was SYSTEM reworked at some point? Bear in mind that 95%+ of my clients
> are still using 5.0.x. If there's a 5.6+ -ism, then I won't necessarily
> know about it...or remember it. I know about nested calls. I did read the
> 5.8 release notes.
As I stated in my original reply:
Use the new SYSTEM() function in 5.6 instead, as it returns
the exit value.
[...]
> When, if ever, was SYSTEM redone?
The SYSTEM *command* was never "redone". Rather, as I wrote in my original
reply (quoted above), 5.6 introduced the SYSTEM() *function*.
--
Kenneth Brody
More information about the Filepro-list
mailing list