From: rahul <rahul2012@gmail.com>
To: zsh-users@zsh.org
Subject: Capture stderr to variable without new process
Date: Tue, 22 Jan 2013 01:41:57 +0530 [thread overview]
Message-ID: <CACQNQ9Mz1hX4kYs+MnYmt8p+_LvBOmg1s6tdYogALXj+tme6Gw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 200 bytes --]
I guess the typical way would be:
ERR=$(popd 2>&1)
However, the command cannot run in a sub-shell as it would have no effect
in the current shell.
Is writing to a file the only way ?
--
rahul
next reply other threads:[~2013-01-21 20:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-21 20:11 rahul [this message]
2013-01-21 23:35 ` Phil Pennock
2013-01-23 7:36 ` Han Pingtian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CACQNQ9Mz1hX4kYs+MnYmt8p+_LvBOmg1s6tdYogALXj+tme6Gw@mail.gmail.com \
--to=rahul2012@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).