From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7859 invoked by alias); 25 Apr 2013 17:44:54 -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: 17777 Received: (qmail 9645 invoked from network); 25 Apr 2013 17:44:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_NUMERIC_HELO,SPF_HELO_PASS autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.3 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Yuri D'Elia Subject: Re: precmd: write error: interrupted Date: Thu, 25 Apr 2013 19:44:40 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.106.183.18 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 In-Reply-To: On 04/25/2013 06:47 PM, Yuri D'Elia wrote: > 2) Why "precmd() { { print "HELLO" } >&- 2>&-; } doesn't suppress the > error in this case? Closest analogue I could find is: % { { print >&2 } 2>&- } 2>/dev/null zsh: write error braces here don't help. A real subshell of course works, but it's prohibitive for precmd.