based on discusion we had in
https://forums.hollywood-mal.com/viewtopic.php?t=4225 returncode must be what OS does
the following example works
in amigaos3.x by returning code 10 (As the OS does),
works in windows by returning 127 (as the OS does)
but not in Morphos/AmigaOS4
In morphos i see thext "failed code 10" in output text (as the OS does print in shell by executing a command)..bug or "feature"?
in AmigaOS4, works with 68kbinary, with ppc binary i see "return code 10" , if ed started without argument (missing) and "return code 0" if fail
Code: Select all
rc, output =Execute("ed","d",{CaptureOutput=True,Consolemode=True}) ; dont exist not return code in win / returncode 10 in amigaos
;rc, output =Execute("not_ed","",{CaptureOutput=True}) ; dont exist not return code in win / returncode 10 in amigaos
NPrint("Return code "..StrStr(rc))
NPrint("output "..output)
Repeat
WaitEvent
Forever