From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15495 invoked by alias); 19 Oct 2013 21:47:04 -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: 31850 Received: (qmail 14740 invoked from network); 19 Oct 2013 21:46:58 -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.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <131019144658.ZM21808@torch.brasslantern.com> Date: Sat, 19 Oct 2013 14:46:58 -0700 In-reply-to: <131019141958.ZM10010@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: zsh syntax check fails on correct if [[ usage (rhbz 966911)" (Oct 19, 2:19pm) 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: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: zsh syntax check fails on correct if [[ usage (rhbz 966911) MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 19, 2:19pm, Bart Schaefer wrote: } } The only oddity that persists is that "zsh -fvc 'something'" does not } display any verbose output for 'something'. Any objections to this? Or should this go in init_misc() instead, so as to not affect other internal calls to execstring()? diff --git a/Src/exec.c b/Src/exec.c index e95cad3..8751ac5 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1027,6 +1027,12 @@ execstring(char *s, int dont_change_job, int exiting, char *context) Eprog prog; pushheap(); + if (isset(VERBOSE)) { + zputs(s, stderr); + if (s[strlen(s)-1] != '\n') + zputs("\n", stderr); + fflush(stderr); + } if ((prog = parse_string(s, 0))) execode(prog, dont_change_job, exiting, context); popheap();