This is so boring and tiresome so I'll let huck have the last word because gee, they designed it a certain way and it must never be changed. choroba had the definitive word on the question I posed. Thank you choroba. His link to cmd is a simple, elegant Perl script that mimics env in macOS, does with the addition of traversing %ENV what I want it to do and adheres to the rule of "least surprise."