Quote:
Originally Posted by
bestard
I've tried postcmd, it works well. Thank you.
Just report my experiences using precmd and postcmd. Actually, I've had enough coping with tcsh bugs.
I'm now using tcsh 6.17.00 (Astron).
On account of precmd's bug, I used postcmd to do an alias command as below
Quote:
alias postcmd 'history -S;history -M'
It looked worked, but actually this alias caused while loop in a shell script worked erratically.
While I did a simple increment by 1 to a variable, it only looped once and finished.
It can be easily reproduced this bug.
My suggestion is using this two functions in precaution if you don't want to mess up with other built-in commands.
I've given up on the "history stuff" unless someone has a better solution.