Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh doesn't load HISTFILE from readonly directory
- X-seq: zsh-workers 28031
- From: JÃrg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: zsh doesn't load HISTFILE from readonly directory
- Date: Sun, 13 Jun 2010 13:17:37 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=gnuu.de; s=banki; t=1276438878; i=@xxxxxxxxxxxx; bh=dZe1tixAco84KAZkNWuEfp3sBPlpA34Js jcdlFeIAX0=; h=To:From:Subject:Date:Message-ID:Mime-Version: Content-Type:Content-Transfer-Encoding:Sender; b=bf5Cz8i6290C+aHFG gn+G2QGhE2wCr9K1S3yKzETMrm4Y2e4fYHfxyPDnEmaS/CNPZwx0SWfK6OalMkMFuUy Wa7S9K7l6+IYXhCkzQh9neYJ/LVVkl9lKqyNev/ZgmlkXW8JpQrcShG9UvgOk9lP0zV KmgfG9n5kNL0NRKttCes=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxx>
Hi,
if the directory, containing the history file, is not writeable, zsh
doesn't load the data and I've not history. I've no problem that zsh
can't save the file, but I would like to have the history from the file.
% ls -ld /tmp/aaa
dr-xr-xr-x 2 joerg users 80 13. Jun 15:00 /tmp/aaa
% ls -l /tmp/aaa/.z*
-r-------- 1 joerg users 93 13. Jun 15:00 /tmp/aaa/.zhistfile
-rw-r--r-- 1 joerg users 26 13. Jun 15:00 /tmp/aaa/.zshrc
<1,5029>(ibook):~% cat /tmp/aaa/.zhistfile
: 1276430398:1;ls
: 1276430403:0;cd /tmp
: 1276430407:0;ls
: 1276430427:0;exec $ZSH_NAME -$-
% cat /tmp/aaa/.zshrc
HISTFILE=$HOME/.zhistfile
With this version, you get the history.
% HOME=/tmp/aaa zsh
ibook% fc -l
1 ls
2 cd /tmp
3 ls
4 exec $ZSH_NAME -$-
ibook% echo $ZSH_VERSION
4.3.10
But with this version, the history is empty.
% HOME=/tmp/aaa zsh-beta
ibook% fc -l
1 fc -l
ibook% echo $ZSH_VERSION
4.3.10-dev-1-cvs0603
Regards, JÃrg
--
Gienger's Law (http://www.bruhaha.de/laws.html):
Die Wichtigkeit eines Newspostings im Usenet ist reziprok zur Anzahl der
enthaltenenen, kumulierten Ausrufungszeichen.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author