From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BODY_URI_ONLY,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id ed95c30e for ; Thu, 15 Aug 2019 15:54:07 +0000 (UTC) Received: (qmail 18305 invoked by alias); 15 Aug 2019 15:53:23 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24143 Received: (qmail 12791 invoked by uid 1010); 15 Aug 2019 15:53:23 -0000 X-Qmail-Scanner-Diagnostics: from st43p00im-ztbu10063701.me.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25538. spamassassin: 3.4.2. Clear:RC:0(17.58.63.178):SA:0(-2.7/5.0):. Processed in 3.739341 secs); 15 Aug 2019 15:53:23 -0000 X-Envelope-From: whereislelouch@icloud.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at icloud.com designates 17.58.63.178 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1565884365; bh=H+B3ZmtJJzX1x5BafBJF2AZUG/0IJIJT68c+joQrUXA=; h=From:Content-Type:Date:Subject:Message-Id:To; b=qH4OB0viXh9jCp48XYwzFf4e5Y3EhNn3wR2k78SP5xvnMTGGgWU4CBsnj1GDfcK0q A/DTuTYBsuV4luHOmhDKpTx15UgGEP+4jOZFQMfL/mhNMuJu2InwyWQo75pXsGzt2S dPB0WNcfJx0DcTv4aFARMOqNEW5BCx3AUZHR0iDE4x8ldNCFbO33orDstIs+hpNN1R g6Tx4te++vDwmpRfwQy/ShJWouJ2xghq9HSpuT3NcVMkZ0mvn7nS8KtgXrHuLoqdjE 21113TYHF81D1/n3fyWih1eQmbs/VtPHv5vh0hIIkHfOXWqOefkCV1Vl3HA9nnvdL+ TzZS/wbYGd4yA== From: Aryn Starr Content-Type: multipart/alternative; boundary=Apple-Mail-2842BB38-9805-4ED9-B47A-B8961B15EDD4 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Date: Thu, 15 Aug 2019 20:22:38 +0430 Subject: Capture stdout, stdin, and exit status in different variables without using temporary files Message-Id: To: zsh-users@zsh.org X-Mailer: iPad Mail (16F203) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-15_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1031 mlxscore=0 mlxlogscore=300 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1812120000 definitions=main-1908150155 --Apple-Mail-2842BB38-9805-4ED9-B47A-B8961B15EDD4 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Per http://mywiki.wooledge.org/BashFAQ/002, it seems this can not be done in= bash. Is it possible in zsh? If not, is a named pipe advantageous to a temporary file? Is there a way to avoid disk IO (which will probably slow things down consid= erably)?= --Apple-Mail-2842BB38-9805-4ED9-B47A-B8961B15EDD4--