#NEWLINE# def equal_with_bash( prefix , ffc , fc , out = None ) : #NEWLINE# #INDENT# res = ffc ( prefix ) #NEWLINE# res_bash = set ( fc ( prefix ) ) #NEWLINE# retval = ( set ( res ) == res_bash ) #NEWLINE# if out : #NEWLINE# #INDENT# out . write ( ( 'equal_with_bash %s %s\n' % ( retval , res ) ) ) #NEWLINE# if ( not retval ) : #NEWLINE# #INDENT# out . write ( ( ' python - bash: %s\n' % ( set ( out ) - res_bash ) ) ) #NEWLINE# out . write ( ( ' bash - python: %s\n' % ( res_bash - set ( res ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return retval