Here is the transcript of a complete TCC session:
As you can see the batch file "TestQuit.btm" does nothing more than exit with an exit code of 8. I ran TestQuit twice showing %? and %_? in both orders to absolutely prove that echoing one was not zeroing the other.
I must be really stupid or something because I'm too stupid to figure out why the exit code is always zero when the batch file does nothing more than quit with a hard-coded exit code of 8.
Code:
Sun Dec 9, 2012 2:46:31a
SafeChars plugin v1.7.0 loaded.
TCC 14.02.38 x64 Windows 7 [Version 6.1.7601]
Copyright 2012 JP Software Inc. All Rights Reserved
Registered to Daniel Mathews
[Z:\]Type TestQuit.btm
@Echo Off
Quit 8
[Z:\]TestQuit
[Z:\]Echo %? %_?
0 0
[Z:\]TestQuit
[Z:\]Echo %_? %?
0 0
[Z:\]
I must be really stupid or something because I'm too stupid to figure out why the exit code is always zero when the batch file does nothing more than quit with a hard-coded exit code of 8.