From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18077 invoked by alias); 1 Oct 2011 21:15:19 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16459 Received: (qmail 19298 invoked from network); 1 Oct 2011 21:15:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.216.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=5uAZ0nvBMPIqnN4rTL6kl8mfNE9gYl+gUTxS6fbYISs=; b=t4Er4psRXo4WFupLg9EYEcRZP/75+RcZTOuWk3Dp2jgEFKIGYsZnd/W5peoNJaZvVO Op5ovV0q9HTDh2XmpnMa1o65wEQjtD46PeCi0dQantAC/4UBu6ZPkoimOgTIKCZHRmhD NA9MfVlWncLMRNACXyZ/nv+VFUdyujsv8evuM= MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 1 Oct 2011 16:44:16 -0400 Message-ID: Subject: Re: zshaddhistory confusion From: Jay Levitt To: "Benjamin R. Haskell" Cc: zsh-users@zsh.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Benjamin Haskell wrote: > zshaddhistory () { > =A0 print -sr -- "${1%%$'\n'}" > =A0 fc -p ~/.zsh_history_detail > =A0 print -sr -- "${1%%$'\n'} ### ${PWD} $(date '+%Y-%m-%d %R')" > =A0 return 1 > } Thanks for the help! This fixes the double-write to .zsh_history_detail, but is still writing weird stuff to .zsh_history: : 1317501595:0;echo autojump.zsh : 1317501605:0;git st : 1317501607:0;echo git st : 1317501691:0;cd : 1317501694:0;tail .zsh_history Ideas?