
                         :    S r SSKr\R                  S:H  rS rS rg)z8Utility functions for dealing with command interpreters.    Nntc                     [         (       a  SR                  U 5      $ SnU  H  nUSUR                  SS5      -   S-   -  nM      US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      sR     U88E?!dt||C+	+d	22A  
3B-    c                     [         (       dL  [        R                  " U 5      (       a  [        R                  " U 5      n U $ S[        R                  " U 5      -   n U $ )zCTranslate from a wait() exit status to a command shell exit status.   )r	   os	WIFEXITEDWEXITSTATUSWTERMSIG)statuss    r   ShellifyStatusr   $   sG     
	||F~~f%f 
- R[[((f	-r   )__doc__r   namer	   r   r    r   r   <module>r      s(   
 ? 
 
D*r   