prolog::shell/2¶
shell(+ Command,- Status)*
Execute command Command under a new shell and unify Status with the exit for the command. YAP will be in background until the command completes. In Unix environments YAP uses the shell given by the environment variable SHELL
with the option " -c "
. In WIN32 environment YAP will use COMSPEC
if SHELL
is undefined, in this case with the option " /c "
.