Alt-Y vs. :Reflect
Q: Why do some Reflection command files work fine when I execute them from the Alt-Y command line, but go screwy when I execute them using Qedit's :Reflect command?
A: Qedit's :Reflect command sends an escape code to Reflection to invoke the command, then Qedit waits for Reflection to send back a status code to indicate when the command is finished. While Qedit is waiting for the result code from Reflection, it isn't capable of executing other Qedit commands - it's already executing a Qedit command! The only thing that Qedit is capable of doing while it's waiting is to execute any shell commands that Reflection might send to the HP 9000. The reason why shell commands must be accepted is that Reflection sends a command to execute unxlink2 whenever a file transfer is requested.
As long as the command or command file doesn't attempt to transmit any data to the HP 9000, :Reflect will probably work the same way as Alt-Y.
For example, here is a Reflection command file that works from Alt-Y, but not from :Reflect.
; EXIT.RCL
; This command file gets me out of Qedit, logs me off
; the HP 9000 and exits from Reflection.
;
transmit "exit^M"
wait 0:01:00 for "[no]:"
transmit "yes^M"
wait 0:01:00 for "$"
transmit "exit^M"
wait 0:01:00 for "terminated>"
wait 0:00:05
hardexit