don't recursively expand when pattern starts with ~