zsh-workers
 help / color / mirror / code / Atom feed
From: François <aifsair@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-workers@zsh.org, aifsair+zsh@gmail.com
Subject: Re: Issue with history
Date: Thu, 15 Mar 2012 11:13:25 +0100	[thread overview]
Message-ID: <63F81A83-8B19-4E9E-8765-A6447DE47AE9@gmail.com> (raw)
In-Reply-To: <CAH+w=7You6CxtLnopg1GacermtRrd4ArYKXgmrFX4GyOEiz1KA@mail.gmail.com>

Hi again,

thanks for your response.

I've just rebooted, and `history 1` function gives me an arbitrary command, which I hit yesterday evening.
If I hit `history 1` again, the cursors switches to the next function.

Something else I have noticed, if I edit the history file, I get the 
: 1331806147:0;history 0
: 1331806161:0;fc

notation. But it seems that only the history of current instance(s) has such additional informations.

And the zsh -x -i or -l does not give a lot of differences as far as I understand.

I'll let you know if I find more information on that.
I think I'll create a h() function which will just call grep on my history file :p

--
François

Le 15 mars 2012 à 01:58, Bart Schaefer a écrit :

> On Wed, Mar 14, 2012 at 2:59 AM, François <aifsair@gmail.com> wrote:
>> 
>> There is still a big change that appeared in my .zsh_history:
>> 
>> […]
>> vim .emacs
>> find . -name '*.c'
>> open -a emacs  Downloads/ddns-1.0/message.c
> 
> So, where did you execute those particular commands?
> 
> It begins to appear that you (unintentionally) have history configured
> differently for login shells as compared to other interactive shells.
> For example, /etc/zlogin may be resetting some history options and
> thereby replacing the ones that you have in your .zshrc.
> 
> Try running
> 
> zsh -x -i 2> /tmp/zshxi
> zsh -x -l 2> /tmp/zshxl
> diff -u /tmp/zshxi /tmp/zshxl | more
> 
> then search through the diff for unexpected setopt commands, etc.


      reply	other threads:[~2012-03-15 10:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-08 16:41 François
2012-03-08 18:28 ` Bart Schaefer
2012-03-08 23:05   ` François
2012-03-09  3:25     ` Bart Schaefer
2012-03-14  9:59       ` François
2012-03-15  0:58         ` Bart Schaefer
2012-03-15 10:13           ` François [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=63F81A83-8B19-4E9E-8765-A6447DE47AE9@gmail.com \
    --to=aifsair@gmail.com \
    --cc=aifsair+zsh@gmail.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).