\ 1.
As you inherited your .kshrc, there may have been a reason why you ever needed these extra options hupcl, ixon, ixoff . Now they may be obsolete, but they may be something that is the focus of HP. Or it may be that some applications work better with them included. Maybe the ol-timer will find out.
Does anyone know the point hupcl ixon ixoff lines
These descriptions are pretty obvious to me, but then I had to deal with problems such as: yyyy back, and read Orielly termcap and terminfo to figure it out. You can look at man ascii to see DC3 and DC1 in their context, or Google search queries may get something interesting.
Now, within a few days, I would expect that if you have no special needs, this will not help you. Do you have special HP hardware or special terminfo applications. If not, try commenting on this line.
\ 2. Test for interactive
I like your case $- in *i* ... , which should be good enough.
else
if tty -s > /dev/null 2>&1 ; then ...
may I help
OR canonical
if [[ -t 0 ]]; then
Hope this helps.
source share