Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problem with zip completion
- X-seq: zsh-users 4388
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Problem with zip completion
- Date: Thu, 18 Oct 2001 01:15:12 +0200
- In-reply-to: <1011017174447.ZM4784@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20011017164751.A6245@xxxxxxxxxxxxxx> <20011017111333.A32235@xxxxxxxx> <20011017182121.A6958@xxxxxxxxxxxxxx> <1011017164932.ZM4674@xxxxxxxxxxxxxxxxxxxxxxx> <20011017191154.B17322@xxxxxxxxxxxxxx> <1011017172404.ZM4733@xxxxxxxxxxxxxxxxxxxxxxx> <1011017174447.ZM4784@xxxxxxxxxxxxxxxxxxxxxxx>
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 <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/> - 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author