![]() |
Home | Libraries | People | FAQ | More |
boost::process::v2::shell — Utility to parse commands.
// In header: <boost/process/v2/shell.hpp> struct shell { // types typedef ; typedef ; // construct/copy/destruct () = ; template<typename Char, typename Traits> (); (basic_cstring_ref< ); (); (shell &) = ; (shell &&) ; shell & (shell &) = ; shell & (shell &&) ; ~(); // public member functions () ; () ; () ; () ; () ; () ; () ; template<typename Environment = environment::current_view> ( = ) ; // private member functions (); };
This utility class parses command lines into tokens and allows users to executed based on textual inputs.
In v1, this was possible directly when starting a process, but has been removed based on the security risks associated with this.
By making the shell parsing explicitly, it encourages a user to run a sanity check on the executable before launching it.
Example.
shell
public member functions() ;
() ;
() ;
() ;
() ;
() ;
() ;Native representation of the arguments to be used - excluding the executable.
template<typename Environment = environment::current_view> ( env = ) ;