[Info-vax] How to detect ^Y from an inner command procedure
alanfe...@gmail.com
alanfeldman48 at gmail.com
Thu May 18 20:15:22 EDT 2023
Suppose you're running a command procedure from a command procedure.
$ TYPE 1.COM
$ @2.COM
$ EXIT
$ TYPE 2.COM
$ WAIT 0:00:04
$ EXIT
So 1.com runs 2.com.
Suppose you run 1.com and press ^ Y while 2.com is running. The command interpreter then exits 2.com and resumes running 1.com. Is there any way to tell from 1.com if 2.com was aborted via ^Y or just finished normally?
I thought $STATUS might help, but sometimes I get
$STATUS == "%X10000001"
and sometimes I get
$STATUS == "%X10010001"
So I guess that's not the way to go.
Is there a way to do this?
TIA.
More information about the Info-vax
mailing list