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

shared history file



Hello, I was trying to implement a per project shell history file.
Some of these projects are on windows shared mounted via cifs. when I open those files as history with fc -p I get:

/root/.zshrc:440: locking failed for /mnt/docs/projects/devbox/.history: operation not supported: reading anyway
zsh: locking failed for  /mnt/docs/projects/devbox/.history: operation not supported: reading anyway

Is it possible to work around this? is it possibile in zsh to disable locking the history file during write operations? I am the only one writing to those files so I shouldn't risk a concurrent operation.
I tried using setopt HIST_FCNTL_LOCK but ended up with an emptied history file.

Pier Paolo Grassi


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