From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27581 invoked by alias); 22 Jul 2013 20:31:10 -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: 31563 Received: (qmail 18838 invoked from network); 22 Jul 2013 20:31:05 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 209.85.215.177 is neither permitted nor denied by SPF record at ntlworld.com) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-proxyuser-ip:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=44xe5Gb1mqp4KojGjCjp4hm7PP0rQuuz1/xoky7AF0U=; b=ce3Lw8hUUu2sigvpu9VgTgOe0sdRITXFjRc12gfCAu1DFKO/AFlouAVuJbRE3kgCuD CQcdsi/FmsXgKdNhLW4XHR1htRqwLQl8c2f0kuEY+mkEq5IH89iOGL6Z2ATmbhb6kYQe /pw+HgCMVVJrXCqxBIdp2eHFhG+aeRkI8dB6GOERekYsDuy6/hjSueGBxNi1lkadBpgz ztWHKEnjzyAbxQyV/Kl4qzQaZe0ENI7nA1uVwq59hjKa8nPN+wXq3yejMedRMFs/N9Jq PFdOmz5Pv9vf2OOrvyioay7H+zZ5p4HAvy1+Pn7sA1bwbXfsFCt26D0fSwJJNUZNpMPA 7P8g== X-Received: by 10.14.99.71 with SMTP id w47mr29488272eef.140.1374525059671; Mon, 22 Jul 2013 13:30:59 -0700 (PDT) X-ProxyUser-IP: 86.6.30.159 Date: Mon, 22 Jul 2013 21:30:56 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: interactivecomments and preexec Message-ID: <20130722213056.4aa51744@pws-pc.ntlworld.com> In-Reply-To: <20130722202216.GC9580@chaz.gmail.com> References: <20130721194524.GC10400@chaz.gmail.com> <20130722105332.2e7e8366@pwslap01u.europe.root.pri> <20130722193012.3a0a4f9f@pws-pc.ntlworld.com> <20130722210203.4f1245d2@pws-pc.ntlworld.com> <20130722202216.GC9580@chaz.gmail.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQml78xxhzuBpHH+mzopOoMrgwd3clPvJf2rfNUOvx3GjsjaVXFLmoNhEnoGCY9RdUdkJXQx On Mon, 22 Jul 2013 21:22:17 +0100 Stephane Chazelas wrote: > 2013-07-22 21:02:03 +0100, Peter Stephenson: > > On Mon, 22 Jul 2013 19:30:12 +0100 > > Peter Stephenson wrote: > > > + ihwend(); > > > > Oops, should be hwend(), which is a function pointer that points to > > ihwend() in the case of interactive history. Now fixed. > [...] > > Thanks, > > though that works with `zsh -f`, that doesn't seem to work with > those options: It does for me. You have extendedglob on interactivecomments off badpattern on so "#" is not a comment, it's a bad pattern because it doesn't follow another string, which is what the shell reports. Up arrow and output from preexec give the unexpanded command line regardless. But I don't know what you're claiming doesn't work. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/