I'm testing some scripts which are destined for use inside various GUI Apps, either as direct shell calls or as part of an AppleScript do shell script
call. I know from experience that the shell which an App gets is nothing like what I get by default when starting Terminal, so I'd like to figure out a way to simulate the shell that an App gets so that I can debug the scripts knowing that they are behaving as I should expect them to behave in their final expected use environment.
So, how to I open an Terminal (or modify one which is already open) so that it behaves like the shell that a GUI App has access to?