def as_bash_array(self) -> str:
        """Return a representation as a bash array.

        This creates a string formatted as a bash array containing all the commands in the job.

        """
        return_string = "( \\\n"
        for command in self:
            return_string += '"' + str(command) + '" \\\n'
        return_string += ")"
        return return_string