From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16994 invoked from network); 1 Oct 2008 00:58:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 Oct 2008 00:58:06 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 685 invoked from network); 1 Oct 2008 00:57:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Oct 2008 00:57:42 -0000 Received: (qmail 2410 invoked by alias); 1 Oct 2008 00:57:26 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25784 Received: (qmail 2376 invoked from network); 1 Oct 2008 00:57:21 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 1 Oct 2008 00:57:21 -0000 Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by bifrost.dotsrc.org (Postfix) with ESMTP id 0CE2F8043AC5 for ; Wed, 1 Oct 2008 02:56:40 +0200 (CEST) Received: by yx-out-2324.google.com with SMTP id 31so59079yxl.81 for ; Tue, 30 Sep 2008 17:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=NuivtLvbHGvkVtELhFVGuIE5TuDaIboVjciofJB23AY=; b=lUb4kBL+o31Y+bKSTg29LReFExDq45hLw9O/jnHS6OYOjOeMkOrEGg6KPm9+ZyTFgR +ibDGrs/wqLeXhF+DARiQizVv4p2Zl2O2lOnWHNm5b7sfbxqxYrmY7jLRtnY8bGZNq1O lUz65DHfRSm1G4YCnTDLgqMbF0QId+/WNQI5E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=q6FeOCqvRqJdLkbyJugZxGcUE7dP35X4aYHb+sipoOGrGdP7RDdQgQLd4cRq+MQtN1 u/MncmO68qvaOo3bJr4MZ1yB3JLVC86De6yDrPF1bAG6P9INxG0k0pj+80F7LiESq1H1 igISFf8f4ntkwgsyCiQh1XbBd6EdM6b7gn2Cs= Received: by 10.100.152.11 with SMTP id z11mr7053953and.112.1222822599640; Tue, 30 Sep 2008 17:56:39 -0700 (PDT) Received: by 10.100.43.19 with HTTP; Tue, 30 Sep 2008 17:56:39 -0700 (PDT) Message-ID: <2d460de70809301756j71effaa9waa6b1a1d0736d9b9@mail.gmail.com> Date: Wed, 1 Oct 2008 02:56:39 +0200 From: "Richard Hartmann" To: "Zsh hackers list" Subject: Strange parsing bug(?) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: ClamAV 0.92.1/8362/Wed Oct 1 01:23:46 2008 on bifrost X-Virus-Status: Clean Hi all, I have stumbled upon a really weird bug. Due to it being late & me being ill, I thought I did something wrong, but I pruned a rather long & complex part of my zshrc down do this: echo "!" The evil part is that a warning was part of a really deep & broad boolean expression which made me assume I did something wrong when the interactive parser failed to do what I wanted. Frustrating when you find the actual cause after several hours :p I suspect it's history access/modification gone awry because of the exclamation mark and the fact that only interactive use is affected, but I am not sure. Stuff in are key presses, the # is an 'inline' comment: richih@roadwarrior ~ % zsh -f roadwarrior% echo 'echo "!"' > temp roadwarrior% source temp ! roadwarrior% echo "!" dquote> dquote> roadwarrior% roadwarrior% echo " # there is a blank line, here. Cursor is at the left roadwarrior% echo "!"" roadwarrior% Of course, I might have stumbled onto a hidden feature, but if that is the case, I would argue that this is extremely against the expectation of most users. Richard