
                         :    d Z ddlZej                  dk(  Zd Zd Zy)z8Utility functions for dealing with command interpreters.    Nntc                     t         rdj                  |       S d}| D ]  }|d|j                  dd      z   dz   z  } |dd S )zTurn a list of words into a shell-safe string.

  Args:
    words: A list of words, e.g. for a command.

  Returns:
    A string of shell-quoted and space-separated words.
    'z'"'"'z' N)win32joinreplace)wordsswords      4platform/bq/third_party/google/apputils/shellutil.pyShellEscapeListr      sP     88E?!dt||C+	+d	22A  
3B-    c                     t         sDt        j                  |       rt        j                  |       } | S dt        j                  |       z   } | S )zCTranslate from a wait() exit status to a command shell exit status.   )r	   os	WIFEXITEDWEXITSTATUSWTERMSIG)statuss    r   ShellifyStatusr   $   sB     
	||F~~f%f 
- R[[((f	-r   )__doc__r   namer	   r   r    r   r   <module>r      s(   
 ? 
 
D*r   