rem: printf("query: bad query expression\n");
add: fprintf(stderr, "%s: bad query expression\n", kProgramName);
context: perform_query(BVolume &volume, const char *predicate){	BQuery query;	// Set up the volume and predicate for the query.	query.SetVolume(&volume);	query.SetPredicate(predicate);	status_t status = query.Fetch();	if (status == B_BAD_VALUE) {		// the "name=" part may be omitted in our arguments		BString string = "name=";		string << predicate;		query.SetPredicate(string.String());		status = query.Fetch();	}	if (status != B_OK) {		printf("query: bad query expression\n");		return;	}	BEntry entry;	BPath path;	while (query.GetNextEntry(&entry) == B_OK) {		if (entry.GetPath(&path) < B_OK) {			fprintf(stderr, "%s: could not get path for entry\n", __progname);			continue;		}		printf("%s\n", o_escaping ? 			BString().CharacterEscape(path.Path(), " ()?*&\"'[]^\\~|;!<>*$", '\\').String()			: path.Path());	}}