The shell is executed in the foreground. This function does not return until the shell completes execution.
shell ("mkdir stuff")The shell statement is used in the following example to create an interactive shell.
print "this is the BASIC program" print "creating a shell..." shell print "...returning from shell" print "ending the BASIC program"When executed, the output might look like this:
this is the BASIC program creating a shell... $ pwd /usr/basic $ exit ...returning from shell ending the BASIC program
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber