#NEWLINE# @ property #NEWLINE# def formatted_command( self ) : #NEWLINE# #INDENT# '\n        If we have ``bash``, then the command is ``/bin/bash -c <bash>``, whereas\n        if the ``command`` is set, then we just return that.\n        ' #NEWLINE# bash = self . bash #NEWLINE# if ( ( bash not in ( None , '' , NotSpecified ) ) and callable ( bash ) ) : #NEWLINE# #INDENT# bash = bash ( ) #NEWLINE# #UNINDENT# if ( bash not in ( None , '' , NotSpecified ) ) : #NEWLINE# #INDENT# return '/bin/bash -c {0}' . format ( shlex_quote ( bash ) ) #NEWLINE# #UNINDENT# command = self . command #NEWLINE# if ( ( command not in ( None , '' , NotSpecified ) ) and callable ( command ) ) : #NEWLINE# #INDENT# command = command ( ) #NEWLINE# #UNINDENT# if ( command not in ( None , '' , NotSpecified ) ) : #NEWLINE# #INDENT# return command #NEWLINE# #UNINDENT# return None