tcsh history contains junk or special charecters

119 Views Asked by At

In tcsh shell. When we do ctrl+c junk charecters getting printed in history. Contents of /etc/.cshrc are below

# vi /etc/.cshrc
set TERMINAL=`who am i | nawk '{print $NF}' | tr -d '()'`
set history= (1000 "%h $TERMINAL %D/%W/%Y %T %R\n")
set histfile=($HOME/.History_Save/.history_$TERMINAL)
set savehist= (1000 merge)
alias precmd 'history -M; history -S'

# ctrl+c
# history
    18  15:04   ^[[K#+1608283370
    19  15:04   history

Is it possible to avoid printing junk charecters( ^[[K#+1608283370 ) or is it the behaviour of tcsh shell?

OS: Solaris10

TIA

0

There are 0 best solutions below