backported --for-glob