I need to date stamp commands in the history file as the subject says.
I am using the Korn shell with the default history file (.sh_history and
size of 128 running on under MAX/OS by Concurrent.
I have tried things like PS1='$(date>>$HOME/.sh_history)\$' in the
profile.? This works when you log in but doesn't work after that.
How can I get it to work every time the prompt is displayed??
I presume that I'm on the right track trying to modify the primary prompt (PS1).
I know that I could do an alias for each command and script for the 30 - 40
that we commonly use but that wouldn't cover all commands.
Any help is much appreciated.