in reply to Re^2: Weird differing bsd_glob behaviorin thread Weird differing bsd_glob behavior
Could it be that the software that calls your script drops privileges or runs in a container?