Require some way or shell in which commands doesnot gets logged in history file

Guys,
can u tell me some way in which the commands i execute on solaris system doesnot gets logged. It should not appear in history file.. Is there any shell which provide such solution or can I turn off the logging, if yes then how...

Help will be appreciated
Thanks

/bin/sh

History is user controllable by the shell, so you can just modify some environment variables to do this.

In sh/bash/ksh/zsh, those variables are:

HISTSIZE=0 # limits history size to zero (most shells still remember the previous command until exit)
HISTFILE=/dev/null # sends history file to /dev/null instead of somewhere useful (usually best to leave it unset)

Just because your commands aren't visible in your history doesn't mean they are being logged. Solaris systems can be configured to log all exec() calls by modifying audit policy flags in /etc/security, for example.