From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5451 invoked from network); 17 Oct 2001 17:45:09 -0000 Received: from unknown (HELO sunsite.dk) (130.225.247.90) by ns1.primenet.com.au with SMTP; 17 Oct 2001 17:45:09 -0000 Received: (qmail 25087 invoked by alias); 17 Oct 2001 17:44:55 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4387 Received: (qmail 25066 invoked from network); 17 Oct 2001 17:44:54 -0000 From: Bart Schaefer Message-Id: <1011017174447.ZM4784@candle.brasslantern.com> Date: Wed, 17 Oct 2001 17:44:46 +0000 In-Reply-To: <1011017172404.ZM4733@candle.brasslantern.com> Comments: In reply to Bart Schaefer "Re: Problem with zip completion" (Oct 17, 5:24pm) References: <20011017164751.A6245@greux.loria.fr> <20011017111333.A32235@dman.com> <20011017182121.A6958@greux.loria.fr> <1011017164932.ZM4674@candle.brasslantern.com> <20011017191154.B17322@greux.loria.fr> <1011017172404.ZM4733@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Vincent Lefevre , zsh-users@sunsite.dk Subject: Re: Problem with zip completion MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 17, 5:24pm, Bart Schaefer wrote: } } On Oct 17, 7:11pm, Vincent Lefevre wrote: } } } } TRAPCLD() { precmd > $TTY } } } } } this solves the problem. Is it the right thing to do? } } Almost certainly. Actually, having given it a moment's more thought, it would probably be better to use TRAPCLD() { [[ -t 0 ]] && precmd } or even TRAPCLD() { [[ -o interactive && -t 0 ]] && precmd }