[pr6953-docs] update docstrings/whatsnew/shell.rst for env/set_env magic