From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10149 invoked from network); 17 Oct 2001 23:16:04 -0000 Received: from unknown (HELO sunsite.dk) (130.225.247.90) by ns1.primenet.com.au with SMTP; 17 Oct 2001 23:16:04 -0000 Received: (qmail 18845 invoked by alias); 17 Oct 2001 23:15:48 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4388 Received: (qmail 18832 invoked from network); 17 Oct 2001 23:15:47 -0000 X-Authentication-Warning: greux.loria.fr: lefevre set sender to vincent@vinc17.org using -f Date: Thu, 18 Oct 2001 01:15:12 +0200 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Re: Problem with zip completion Message-ID: <20011018011512.C17952@greux.loria.fr> Mail-Followup-To: zsh-users@sunsite.dk 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> <1011017174447.ZM4784@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1011017174447.ZM4784@candle.brasslantern.com> User-Agent: Mutt/1.3.23-current-20011011i X-Mailer-Info: http://www.vinc17.org/mutt_eng.html On Wed, Oct 17, 2001 at 17:44:46 +0000, Bart Schaefer wrote: > 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 } Why? If TRAPCLD is called when stdout is redirected (thus, not necessarily attached to a tty), I still want to be able to write to the tty (here, to change the terminal title). -- Vincent Lefèvre - Web: - 100% validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA