This implementation is wrapper around the undocumented wordexp sh(1) built-in command. From FreeBSD. Provided in PR lib/26123. Approved by kleink@.