zsh-users
 help / color / mirror / code / Atom feed
From: "Peter A. Castro" <doctor@fruitbat.org>
To: list zsh-users <zsh-users@sunsite.dk>
Subject: Re: history trouble
Date: Wed, 1 Feb 2006 10:20:18 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.63.0602010955410.4099@gremlin.fruitbat.org> (raw)
In-Reply-To: <20060201021004.GK5684@fsst.voodoo.lan>

On Wed, 1 Feb 2006, Frank Terbeck wrote:

> Peter A. Castro <doctor@fruitbat.org> wrote:
>> On Sun, 29 Jan 2006, Thomas Richter wrote:
>>
>> Greetings, Thomas,
>>   Can you verify something:
>>   Start a shell, enter a few commands, exit the shell, then look at the
>> history file and see if your commands were added to it?  If so, then
>> it's not a matter of your commands not being written to history, but that
>> they are being buffered and, upon exit, flushed to file.
>>
>> Try this:
>>   setopt inc_append_history
>
>> From Thomas' original posting:
>
>> I can write to the history with
>>  setopt inc_append_history
>> but I want the file read!

Yes, I did see that, however, I wanted to make sure that this option was
really set and that history was been appended to.  Because, if that is
the case, then the history file can certainly be accessed (and read
from).

I guess I don't quite understand the problem.  When you (Thomas) say you
can't read history do you mean you can't do any history functions?  Like,
with zle loaded, scroll through interactive history?  At all?

So, if you start a fresh shell session (with zsh -l -i), you can't
retrieve any previous commands?  If you enter a few commands, can you
retrieve them or not?   Can you 'echo $history'?

I must say that HISTSIZE (and SAVEHIST) are ridiculously large (99999 and
9999).  Setting these to something smaller might be worth a try.

Do you have anything special in any of the /etc/z* files?

Lastly, what if you start zsh from a dos prompt instead of from a bash
shell?

> Regards, Frank

-- 
Peter A. Castro <doctor@fruitbat.org> or <Peter.Castro@oracle.com>
 	"Cats are just autistic Dogs" -- Dr. Tony Attwood


      reply	other threads:[~2006-02-01 22:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-28  7:41 Thomas Richter
2006-01-28 15:53 ` Bart Schaefer
2006-01-28 19:04   ` Thomas Richter
2006-01-28 20:32     ` Bart Schaefer
2006-01-29 16:29       ` Thomas Richter
2006-02-01  0:04         ` Peter A. Castro
2006-02-01  2:10           ` Frank Terbeck
2006-02-01 18:20             ` Peter A. Castro [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.63.0602010955410.4099@gremlin.fruitbat.org \
    --to=doctor@fruitbat.org \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).