From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22570 invoked by alias); 20 Mar 2015 16:04:38 -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: 34756 Received: (qmail 13769 invoked from network); 20 Mar 2015 16:04:26 -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:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=7YwEqEwfUzyNc54WWzOFmIrish9QoQ7owIH9AhEnKOU=; b=ZK8lAHEnRF730P6foLnS1YtevVNWPXjy5YMRm/opDyDfstTxg7ReH9njgutVRPKZJJ J5x1k2fgUTOC8LxzQKMwCRIUgl9qc5/TLMBCnxsWFsjPTYRzEJoUhkkup1r2O/QSvz3z xvQDcZgVz8m5+ZCmBUYdn7hG4U2z9aZ/uJ5ZzlDzspwnIbrlu0UCx6kxylq3rjTE6Ga9 NsHW6P3f2P0h61Pqv7ujI50SOpEi/r5YAlfmXCfykb2mcsHic9i2qRjyMT8vrA9pETlg +mcCZnLV9SjWngD88wV4BubS0RnQZuF0rRLXlYzsB/UhXym8vFvWsTY7fr4wQtg/OaA4 1VHw== X-Gm-Message-State: ALoCoQkQlM/jq04tNIhkV+3cOODhg2qCntn1MvPkOnxgjCJF/ppEORiuqmsTMgPmzpyplLHTDbK2 X-Received: by 10.60.123.83 with SMTP id ly19mr21102104oeb.8.1426867463202; Fri, 20 Mar 2015 09:04:23 -0700 (PDT) From: Bart Schaefer Message-Id: <150320090420.ZM21908@torch.brasslantern.com> Date: Fri, 20 Mar 2015 09:04:20 -0700 In-Reply-To: <20150320105703.2754b6af@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: capturing output of !! not working" (Mar 20, 10:57am) References: <20150319105716.620cd931@pwslap01u.europe.root.pri> <20150319125351.1e270c2d@pwslap01u.europe.root.pri> <20150320105703.2754b6af@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "Zsh Hackers' List" Subject: Re: capturing output of !! not working MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 20, 10:57am, Peter Stephenson wrote: } } Not quite --- it's another similar problem to the last, that history and } alias expansions are pushed onto the input stack in a similar way but } need different processing. The new code is actually slightly more } efficient; inungetc() did too much work for the case in question. } The comment I've added is a distinct oversimplification, but I don't } want to write an essay. } } I think what I'm seeing here is another symptom of the general } entanglement between input levels (that's been there since the start) } that's also been giving Bart headaches. Your patch does not entirely resolve the problem -- this works: torch% echo $(!!) echo $(echo foo bar) foo bar But this does not: torch% echo foo bar foo bar torch% echo $( !! ) echo $( echo foo bar ) zsh: command not found: !!echo