Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Capture stdout, stdin, and exit status in different variables without using temporary files
- X-seq: zsh-users 24153
- From: TJ Luoma <luomat@xxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Subject: Re: Capture stdout, stdin, and exit status in different variables without using temporary files
- Date: Fri, 16 Aug 2019 13:08:57 -0400
- Cc: Aryn Starr <whereislelouch@xxxxxxxxxx>, Zsh MailingList <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uTvXwV1GPS7wIwgraSRnpeEfE/qZ357NnSkN9dB4g8Y=; b=qFAohJ8+TYmlNTdIn1jr/0oQpQFsusUKLVGaT3X8SNx6W5YxY51ZkRhGyUWAefPJYF ooeujIYmYRduBgtqPpum1cce8z7km3L3SLKGOmlEi/c5p/5lGFYw6dH30xbg1O5cesia UQSjksGHxj1gjUP42LxiCJqJJ5nHYFE1Wjp6rzg0UaOkJthpkI53RNVUrm4wNLZkFFm0 H2q2v/WypHYIYDR93kLxnmWQrAA92/X02nlH6ND1MVpd/Hzd5IWrwNL5SWD37qz2hxYd USf1QAMSTv2cy91LxCn/k3LQHPcZdHb3fCQU+mFSY04Qj1XyHtWXWr/gvFJItakiq1GF OViQ==
- In-reply-to: <CAN=4vMooZK0Ha3j-4n=Vpido6AXx2vnc0mwx6QFfZgv4hHPSWQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <D639E5A6-A28C-40EE-B0E6-27BED4C8CDDB__31117.9253900022$1565917892$gmane$org@icloud.com> <20190816100501.nsvfbdwwnoaihlhe@chaz.gmail.com> <70382019-1857-4452-85FC-F038D8BBE206@icloud.com> <CADjGqHva=YphU8hy+N2psfDNAAW1ZqSd5+=hgms5UcDo9o5YPA@mail.gmail.com> <CAN=4vMooZK0Ha3j-4n=Vpido6AXx2vnc0mwx6QFfZgv4hHPSWQ@mail.gmail.com>
>> (){ STDOUT=$( your-command-here 2> $1) STDERR=$(<$1);} =(:)
>
> The OP is asking for a solution that doesn't use temporary files, so this doesn't fit.
My apologies, I didn't realize that this method used temporary files.
TjL
Messages sorted by:
Reverse Date,
Date,
Thread,
Author