no, before invoking vared I do
fc -p -a $file 200 200
to have an history specific for the command
I just found out that replacing my previous trap with
trap 'return 1' INT
the history file is preserved after a ctrl-c.
If I instead do ctrl-g (send-break) the history file gets "cleaned" again
by cleaned I mean not really empty, but a file that contains just the first row of the history, for example
if the history file contained:
and I enter vared, than send ctrl-g, the file contains then only
Is it possible to catch send-break? is it implemented through a trappable signal?
Pier Paolo Grassi