zsh-users
 help / color / mirror / code / Atom feed
* shared history file
@ 2021-10-02 17:52 Pier Paolo Grassi
  2021-10-02 17:54 ` Pier Paolo Grassi
  2021-10-02 23:12 ` Bart Schaefer
  0 siblings, 2 replies; 4+ messages in thread
From: Pier Paolo Grassi @ 2021-10-02 17:52 UTC (permalink / raw)
  To: Zsh-Users List

[-- Attachment #1: Type: text/plain, Size: 703 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1009 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-02 23:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-02 17:52 shared history file Pier Paolo Grassi
2021-10-02 17:54 ` Pier Paolo Grassi
2021-10-02 23:12 ` Bart Schaefer
2021-10-02 23:19   ` Pier Paolo Grassi

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).