ifconfig exits to Supervisor
Jon Abbott (1421) 2651 posts |
Repro (tested on a Pi1 running 5.30)
You’re now back at Supervisor and not in BASIC EDIT: I’m being an idiot, I’ve just realised ifconfig isn’t a * command and is an app so will behave in this way. |
Dave Higton (1515) 3525 posts |
ifconfig is strange. You can’t redirect its output in the usual RISC OS way. |
Stuart Swales (8827) 1357 posts |
ifconfig – like most of the Internet binaries it seems – is just another Absolute executable so unsurprising that it doesn’t return to BASIC. Probably C, so use std indirections rather than RISC OS. Might be worth extending BASIC’s OSCLI to act more like C’s system() call – option to shunt everything high, set new environment… |
Sprow (202) 1158 posts |
If you need to shell out from BASIC to run another Absolute, ChangeFSI does just that by shunting everything high like Stuart says. A few of the build tools which are in BASIC do too. Just grab the Shell code, |