From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8858 invoked by alias); 1 Jan 2016 21:17:41 -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: 37475 Received: (qmail 22266 invoked from network); 1 Jan 2016 21:17:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=nehx3VRMozWwC1BMpJvHHZe4L3GZAVTTqrrzZAn3Tcg=; b=HCHKEigNJEf16+Yl6bSVE1SKDwkb53nhj/dSPa4JMtGf65jX4i2wstb3pudB1R+yuV W++yD956dntn6y+nF6ocYwvjsQFQuFERwTDuwVtwlG7E97bm/gfeKXzkNIALiXBHi9b1 tEjMh+auG26ZgsMdqO+tsgd2UNaSuy1RUPSwR/j7N6I1GU55LQHFxjDtJq2HbXRIjojP smMOInyaJ/wx210lQYIeyPPuWCENv5U9qj36YPO/zQLy9Yd2tNjERfW298NefSe9j2h2 dLUl7NtBRXaFIsq+jDC7OIrj2uHyzGMo99zIyaK22o5NakVvu58Y+s64Di24fZPJlMfw Hk/Q== 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=nehx3VRMozWwC1BMpJvHHZe4L3GZAVTTqrrzZAn3Tcg=; b=S8rfXlq2xTZ4DelZvq1AkwAEB+VTU9HvlV7N6l06U2Bm2IYbYUpXIit+Ta0TH21o50 fJdWDKzRsEifDDnBTEgN4QdXCaVJnUX+fm9/U94iATBvCL0ZHQTfJBcODMU1YMU5+4D9 5qD00v0JQt41mOBH7PnZ41HwxHtVHgBh1kDW/cxb/F8l/BeHo4+bmOeJh6kNR/rzxadu 2t2prThih2l4PNgOQnAtX6dBus07+wx9u8jQNoWHaAIwEtCvTObGSfYdeWV5wI3WH+N9 1azO9YoVHVaiajVGOdeQemC8NeupqLTi85PAMnTFxR5KrFvdtiygTnOvaLXSPlsDUXo0 UAAg== X-Gm-Message-State: ALoCoQl2+ha/G+OIlQzQPajLLL0Jop+mUDooEjWP3MarehfVMJqWiqXaULNo/wGB0+Gk0zdITWpUy9Va63tR06piR4HMfk/Tdw== X-Received: by 10.66.158.129 with SMTP id wu1mr110528911pab.146.1451683058306; Fri, 01 Jan 2016 13:17:38 -0800 (PST) From: Bart Schaefer Message-Id: <160101131741.ZM10623@torch.brasslantern.com> Date: Fri, 1 Jan 2016 13:17:41 -0800 In-Reply-To: <20160101184516.GB8456@chaz.gmail.com> Comments: In reply to Stephane Chazelas "Re: Printf builtin missing v flag support" (Jan 1, 6:45pm) References: <20160101184516.GB8456@chaz.gmail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "zsh-workers@zsh.org" Subject: Re: Printf builtin missing v flag support MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 1, 6:45pm, Stephane Chazelas wrote: } } ksh93 tries to only fork to execute external commands. For } builtins when used in command substitutions, ksh93 just adds } their output to the substituted value If we identified early enough that the command was to be a builtin (which I'm not sure we do) then the HAVE_OPEN_MEMSTREAM code from bin_print() could be copied to somewhere in the getoutput() + readoutput() flow. Would probably require some other finagling in case we rely on the fork for preservation of state.