Operating System - HP-UX
1752801 Members
5814 Online
108789 Solutions
New Discussion

time stamp in .sh_history in korn shell, getting core dump memory fault error

 
Navin1
Visitor

time stamp in .sh_history in korn shell, getting core dump memory fault error

i added the below code to get time stamp in ksh history file , but when i execute below code , i am getting error called memory fault (core dump)

set -u
trap '/bin/date "+#%c" | read -s' debug

i am unable to find what is th error , your help would be appreciated .

i feel error is due to debug or date used .
what can we use instead of using debug ?