core/src/main/java/eu/darken/rxshell/cmd/RxCmdShell.java
/**
         * Each call creates a new instance.
         *
         * @return a new {@link RxCmdShell} instance.
         */
Each call creates a new instance.
@return a new  RxCmdShell instance.
Each call creates a new instance . @return a new RxCmdShell instance .
public RxCmdShell build() {
            for (HasEnvironmentVariables envVars : envVarSources) {
                shellEnvironment(envVars.getEnvironmentVariables(useRoot));
            }
            final ProcessFactory processFactory = new DefaultProcessFactory();
            final ProcessKiller processKiller = useRoot ? new RootKiller(processFactory) : new UserKiller();
            final String command = useRoot ? "su" : "sh";
            RxShell rxShell = new RxShell(new RxProcess(processFactory, processKiller, command));
            return new RxCmdShell(this, rxShell);
        }
public RxCmdShell build ( ) { for ( HasEnvironmentVariables envVars : envVarSources ) { shellEnvironment ( envVars . getEnvironmentVariables ( useRoot ) ) ; } final ProcessFactory processFactory = new DefaultProcessFactory ( ) ; final ProcessKiller processKiller = useRoot ? new RootKiller ( processFactory ) : new UserKiller ( ) ; final String command = useRoot ? "su" : "sh" ; RxShell rxShell = new RxShell ( new RxProcess ( processFactory , processKiller , command ) ) ; return new RxCmdShell ( this , rxShell ) ; }
Each call creates a new instance.
Each call creates a new instance .