[issue3992] set/get use cases for 'env' and new 'set_env' magic
Merge pull request #6953 from mattvonrocketstein/issue3992

[issue3992] set/get use cases for 'env' and new 'set_env' magic