cc: [email protected]
Subject: Re: [ast-developers] libshell C API to begin subshell?
--------
> 
> Is there any public C API to begin a subshell? I'd like to create a
> subshell and run several commands through sh_run() and then let either
> end the subshell through a sh_run() executing exit() or by providing
> another C API call to end it.
> 
> Irek

Not directly, but after calling sh_init(), if you call
        exitval = sh_trap("(command...)",0)
it should run command in a subshell.

David Korn
[email protected]
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to