Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Print -s/-S – how to append to history file?



Hello,
doing print -s/-S indeed places the argument in $history. However, even though inc_append_history is set, file $HISTFILE isn't updated. Is there a way to make it work? AFAIK update of history file is done exclusively, with locking. If I will just echo -E entry with $'\n' replaced to "\"$'\n', it will be somewhat possible that two processes will write $HISTFILE in the same time?

--
Sebastian Gniazdowski


Messages sorted by: Reverse Date, Date, Thread, Author