import fnmatch


def in_list(patterns, name):
    """
    Return true if name matches at least one pattern in the list.
    """
    for pattern in patterns:
        if fnmatch.fnmatch(name, pattern):
            return True
    return False