def shell(cmds, env=None, **kwds):
 sys = kwds.get('sys', _sys)
 assert (sys is not None)
 p = shell_process(cmds, env, **kwds)
 if redirecting_io(sys=sys):
  redirect_aware_commmunicate(p, sys=sys)
  exit = p.returncode
  return exit
 else:
  return p.wait()

def shell ( cmds , env = None , ** kwds ) : sys = kwds . get ( 'sys' , _sys ) assert ( sys is not None ) p = shell_process ( cmds , env , ** kwds ) if redirecting_io ( sys = sys ) : redirect_aware_commmunicate ( p , sys = sys ) exit = p . returncode return exit else : return p . wait ( )
return the default shell to use on this system .