From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29040 invoked by alias); 15 Mar 2012 10:28:14 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30357 Received: (qmail 3963 invoked from network); 15 Mar 2012 10:28:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.177 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=182Vx95E8x1IJ+ZdVRyVxFXVdxISIjFJOW/MI0xvdyE=; b=CZo6VTZ7R+bMsEI1GZ/STzJ3O/7kAyKJ2nPV0DLNoX9mQVgl9pr9kLKnkzXzB5GPlN ATIN2SdnDoRKKYTLCwF/kD4Vl+6VUv2tM7a3bTTXuMeUPxE5F2WRa+TLcVomzjFoHaGR QC9yxfWWx1PL9QymQBquNVv1uDNr21BIiaq13U9nI7fYyvV+sA5GYf8lYqiE+YXJVEEX uZB1oT4DszCu1releMQ1XcM591LuqBCSbxfH4mET5qazkK9QBoBd4soPCi36a/imbMBF +NrxvhNu3547LPGVAvuptKiE3+sFm/jKfIOAfKyGUjFpGzOEW5gqqIRfzTOTdJ+VTSrF kgjA== Subject: Re: Issue with history Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=windows-1252 From: =?iso-8859-1?Q?Fran=E7ois?= In-Reply-To: Date: Thu, 15 Mar 2012 11:13:25 +0100 Cc: zsh-workers@zsh.org, aifsair+zsh@gmail.com Content-Transfer-Encoding: quoted-printable Message-Id: <63F81A83-8B19-4E9E-8765-A6447DE47AE9@gmail.com> References: <160F1AB7-045E-4DF7-81FE-75D9BAC85523@gmail.com> <120308102812.ZM14534@torch.brasslantern.com> <3EA90EE7-0E80-4F61-8349-CB5C914D432E@gmail.com> <89C1220D-AAB7-4B84-9B8C-0F2F10749CDB@gmail.com> To: Bart Schaefer X-Mailer: Apple Mail (2.1257) 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=20 : 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=E7ois Le 15 mars 2012 =E0 01:58, Bart Schaefer a =E9crit : > On Wed, Mar 14, 2012 at 2:59 AM, Fran=E7ois wrote: >>=20 >> There is still a big change that appeared in my .zsh_history: >>=20 >> [=85] >> vim .emacs >> find . -name '*.c' >> open -a emacs Downloads/ddns-1.0/message.c >=20 > So, where did you execute those particular commands? >=20 > 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. >=20 > Try running >=20 > zsh -x -i 2> /tmp/zshxi > zsh -x -l 2> /tmp/zshxl > diff -u /tmp/zshxi /tmp/zshxl | more >=20 > then search through the diff for unexpected setopt commands, etc.