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

Re: can't set HISTFILE to /dev/null



On 2011-06-23 12:46:24 -0700, Danek Duvall wrote:
> A colleague of mine saw this today:
> 
>     zsh: locking failed for /dev/null: operation not supported: reading anyway
> 
> Turns out he was setting HISTFILE=/dev/null, rather than unsetting it.
> 4.3.10 was silent in this case, but 4.3.12 now complains.  Is this
> intentional?

Locking is intentional (4.3.10 did that incorrectly, and the history
file could become corrupt, in particular under NFS). If you really
want HISTFILE=/dev/null, you can try to unset HIST_FCNTL_LOCK.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



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