I need to get rid of all the environment variables in a Ksh shell. I can fork a new instance, but it will inevitably source some init files (as far as I know .profile
, .kshrc
). Is there a way to bypass the sourcing of those files and any other file that might be read at init time?
- Ksh version: Version M-11/16/88i
- OS: Solaris 10
Hope I'm clear enough.
env - /path/to/command
is a standard compliant syntax, unless I misunderstand what you means. – jlliagre Nov 02 '11 at 21:59env -i
. – Gilles 'SO- stop being evil' Nov 02 '11 at 22:05