From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27942 invoked by alias); 19 Oct 2013 22:02:11 -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: 31851 Received: (qmail 9686 invoked from network); 19 Oct 2013 22:01:56 -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 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=g+G4zpqNp5MX4aHQb4JECoeg1eCIYNk/rBkC37uFJMo=; b=JPJ+mhG+xNdJocBUxVyzPQtWvWl7S7RWdTCeEQmBK5dZb2786FCKK9HNykOo9VPBtL 3GEYn/bDbppAb+9nQr8/sU58ocHXHFuctx4Iwn0EpFu0gg8UuilfS49Xu5yOWPqcB/iN 6adu8Wjz+NmMWJchqTer21Fj2FyZFXaT/nnpH+clxIWS+G2Hnug4YdHZuNOGZho/fusq rAGHicaVQs5bIafD88dcauVEhktHy4A1vim+Abpjap4RUZTD6j7GYOdX4mVbQ16mpCmr A6JAQb5PcaIUO8a/KmkuOYyMamZZM5GKOaCmCxOdrvy1DjWGJQVj9XaGZysf2frA9xRs qbYA== X-Gm-Message-State: ALoCoQmPcAaGabYGn5/CHFMCctLWp16qG5OBD7jzwKT92BL89KhcSVEh87hyO4aJPNsQZ3ZkDs6S X-Received: by 10.14.178.67 with SMTP id e43mr12623489eem.59.1382219765093; Sat, 19 Oct 2013 14:56:05 -0700 (PDT) X-ProxyUser-IP: 86.6.157.246 Date: Sat, 19 Oct 2013 22:56:02 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: zsh syntax check fails on correct if [[ usage (rhbz 966911) Message-ID: <20131019225602.38f2cf01@pws-pc.ntlworld.com> In-Reply-To: <131019141958.ZM10010@torch.brasslantern.com> References: <52613F82.1000009@redhat.com> <131018084831.ZM8783@torch.brasslantern.com> <20131018165614.48f399b7@pwslap01u.europe.root.pri> <131018122000.ZM9018@torch.brasslantern.com> <20131018234351.600adfc6@pws-pc.ntlworld.com> <131019141958.ZM10010@torch.brasslantern.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 On Sat, 19 Oct 2013 14:19:58 -0700 Bart Schaefer wrote: > The only oddity that persists is that "zsh -fvc 'something'" does not > display any verbose output for 'something'. This affects verbosity of execution of strings for fc editing, sched, STTY and inside zregexparse, too, but it's not clear that's wrong, and they're all non-standard cases where we get to choose. diff --git a/Src/exec.c b/Src/exec.c index e95cad3..d5fe69e 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1027,6 +1027,11 @@ execstring(char *s, int dont_change_job, int exiting, char *context) Eprog prog; pushheap(); + if (isset(VERBOSE)) { + zputs(s, stderr); + fputc('\n', stderr); + fflush(stderr); + } if ((prog = parse_string(s, 0))) execode(prog, dont_change_job, exiting, context); popheap(); -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/