Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Capture stderr to variable without new process
- X-seq: zsh-users 17597
- From: rahul <rahul2012@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Capture stderr to variable without new process
- Date: Tue, 22 Jan 2013 01:41:57 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=ydWIW2CO2IgTRu3wPZrIF+iRGu/Zb92wg/kZvWg5T4A=; b=jHs+hdCWSs+Tj7O29J9ws1GWLhMg+jMWJ4+CkFZAWZynphENVm60OJKHcC2AooW87m NEXlNZ+TkAG7YQ+15sZ4Q1rwY7RAz1qDqkS6zjPSv3oxcOKq+zXXVWnhBKGQXPKfDxoJ 2IapOaSafM4YcIj+Sz1z1/919MFyTcJu+/7oEM6PexQ0SRCOlw3QIbAqKg3H1wIqIdyg YFRdOCrzF5Cbd4I8Ki0a36fR8nWkqDnf0GkP54knCwaRivYIcX0+GqII8rntl64F2B53 g8lUm9vijX3UhRpFHxJjxh3sT1Xoasc02ZcXIjwKItvxrl7mPpOmOUUom4tFMW6E7BhJ MxRg==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author