From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8070 invoked by alias); 26 Oct 2014 21:04:53 -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: 33545 Received: (qmail 7934 invoked from network); 26 Oct 2014 21:04:51 -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 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=IJ210brD c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=7oNcYbU-3Mt3RVZKbiYA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141026140439.ZM14760@torch.brasslantern.com> Date: Sun, 26 Oct 2014 14:04:39 -0700 In-reply-to: <544D5242.7000505@eastlink.ca> Comments: In reply to Ray Andrews "Re: first adventures" (Oct 26, 12:57pm) References: <544D2D6F.8030505@eastlink.ca> <141026105032.ZM13782@torch.brasslantern.com> <544D5242.7000505@eastlink.ca> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: first adventures MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 26, 12:57pm, Ray Andrews wrote: } } > No, that there isn't, though if you look around line 296 of input.c where } > the VERBOSE option is handled, you'll get close. The input line is read } > into what's called "metafied" form by zleread() and has to be unmetafied } But. But ... we can't get the string before it's metafied in the first } place? The following is a lot oversimplified, but: It's read one character at a time and each character is then metafied before being aggregated into the string buffer. } How is it possible for it to be metafied before 'it' exists? If I can } have a meta-fried egg, surely at some point there was a raw egg? It's more like having a bag of popcorn; they don't all pop at the same time, but ideally you don't open the bag until all of them have. } I was looking in hist.c, because the one place where } things seem to be stored 'literally' is in .histfile. History isn't stored until after bangchar references have been expanded, so although it's closer to literal it's still not the actual input line. } The Tao of zsh is a deep thing. Partly this is from separating ZLE into a module years after the shell was first written. It's designed so that somebody else could write and plug in a different line editor module, but no one got that ambitious. } But somehow I just can't get anything to print if interactive. It works for me: torch% echo hello echo hello hello torch% Are you sure that you're actually executing the correct binary when you are running interactively? Maybe a startup file is "exec"-ing another path? What happens if you start zsh with the -v option?