Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Problem with zip completion



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