From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25518 invoked by alias); 14 Nov 2015 19:02:14 -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: X-Seq: 20957 Received: (qmail 15353 invoked from network); 14 Nov 2015 19:02:13 -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=Wyh/NOrf/A5bad/fjh/I03K+xMvu9otSISZI55B7blE=; b=ZxI+gXn0LXYLy6A807sVulM7kr81v/YyAe1R7uBtzy2CNkpbJ4ceiARuJ4xp4UGkZ4 PluaI8mKPdo8kE7sFvUurgHHJyiIr7GEhNtcMuLe9Vq96UcsP1ju4zBZz44KkNVsoUCr 4U0DQK41FfGvYB6nN4u+H5WIjqF2Md2nyqCMajjjFGOXN48SgwDDeHGgBp9O7lDDbIjk IjivQEVqfjAaxHhrfTtXuPQ0ukzCXmYGTt6cWw8chwuoQx9U94vfoA9Q9YT1X1FrVats N8PNjVAm4C3zc9MxaLbzjsxJGMHPrD3w5DMYALqqq2oRAr9lc3GnBybdv+rrDQbqWIKF tBog== 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=Wyh/NOrf/A5bad/fjh/I03K+xMvu9otSISZI55B7blE=; b=UZQXkBR+yLxMJ61eo1bH3nDM8ijNqifYQcylhRDbC7XVQdLv5kjm2K8sIYqvX1qPQA Gm7iDE1zvaZpafhIWN0dMGx2nYCxSeDmWdnhSEhNrZqVYRdh6sIL8En4aB1YRs2T+vdg /qi/HdFFSFVCJiN8MIEIEZ07a/Xl7FAYmp1PmJxzzUnBJWhXMOnINRbQ0EURKusyhw0d jE04jo/dgtUiwf1pdUuOBauyCDeE8JUzZ/74wmZZf5JfLkEHSfP6I0wgUBmLcUgkCIfx gkbYVYNOe7DnJrifjhZtFLnFI/BLZmu9r0i3AFYDM2PgYaSSjjJBEqV7v7SWTFh6ygbu 9TCw== X-Gm-Message-State: ALoCoQkN9KWP5JLfpB8w7T/j+lWuZm/mWovrZx78i12dY+uj1mM2Ai7n8qEPXEPJPHTcinstXh/l X-Received: by 10.202.179.198 with SMTP id c189mr15345412oif.67.1447527732303; Sat, 14 Nov 2015 11:02:12 -0800 (PST) From: Bart Schaefer Message-Id: <151114110209.ZM1687@torch.brasslantern.com> Date: Sat, 14 Nov 2015 11:02:09 -0800 In-Reply-To: <56476D72.6010006@eastlink.ca> Comments: In reply to Ray Andrews "Re: capturing stderr to variable." (Nov 14, 9:20am) References: <5646B5F8.3090702@eastlink.ca> <151114000101.ZM611@torch.brasslantern.com> <56476D72.6010006@eastlink.ca> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: capturing stderr to variable. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 14, 9:20am, Ray Andrews wrote: } } > { highlight ... >/dev/tty } 2>&1 | read highlight_err } > } Well that sure beats some of the solutions I found on the net. The only } think obscure there is why redirecting stdout to where it's going anyway } does anything. It's equivalent to opening the same file twice. } Speaking of obscurites, have you given any thought to that cloning of } the environment thing I mentioned a while back? I'd have to see the entire output of "set" rather than just the result of grepping it. (And it'd be preferable that you not post that to the list ...)