One of my DOS scripts opens a shell window showing the return code, but it should not (it doesn't on OS3).
The command doing this is:
Code: Select all
rx >NIL: SpamFryer.rexxIn ExtractArc.rexx :
Code: Select all
'xadunfile >NIL: 'file' DEST='pathThe NIL: device is not behaving like in OS3 ?
Edit : (About ExtractArc.rexx)
The "Command returned 10" is caused by this line:
Code: Select all
window windows path openCode: Select all
which windowMy question about NIL: remain :
Code: Select all
rx >NIL: SpamFryer.rexx- on OS4, the return code (5) is shown. Why ?
Note: SpamFryer returns code 5 if, for example, there is no waiting mail in the queried POP server. This is intended.
However, there is no point showing this code when run from workbench (iconx icon). It can confuse the user and let him think that something went wrong with the script.