#: 14252 S12/OS9/68000 (OSK)
10-Feb-92 00:22:49
Sb: #14249-#Select
Fm: Kevin Darling 76703,4227
To: Bob van der Poel 76510,2203 (X)
Bob,
The lockout comes from a program (like the shell) tieing up a device with a
pending ReadLn. SCF locks the device so that someone else can't splat
characters on top of whatever you're about to type in. Just forking a subshell
with "()" doesn't cause a lockout, as it doesn't do any reads while working.
But you're right, "(selwin;myprog)>>/w" doesn't work. That's because none of
those paths are associated with the currently interactive window.
It's easy to get around this when the shell (like the CoCo's) has "1" and all
the variations (which is no doubt why that was included!).
Hmmm. The best I can think of right now that works is slightly hardcoded to
work only from /term:
(cls;selwin >/term;mdir -e)>>/w
The ">/term" is kinda like the CoCo's "1" method. Except we made "selwin"
send the 1b21 to path 2, and come from path 1.
Sigh. I think we need a new shell. Wonder how hard it'd be to do one in
Basic? :-) Will work on other ideas, too. cheers - kev
There is 1 Reply.
|