Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problem with zip completion
- X-seq: zsh-users 4392
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Problem with zip completion
- Date: Thu, 18 Oct 2001 11:05:59 +0200
- In-reply-to: <20011018004659.A13346@xxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20011017111333.A32235@xxxxxxxx> <20011017182121.A6958@xxxxxxxxxxxxxx> <1011017164932.ZM4674@xxxxxxxxxxxxxxxxxxxxxxx> <20011017191154.B17322@xxxxxxxxxxxxxx> <1011017172404.ZM4733@xxxxxxxxxxxxxxxxxxxxxxx> <1011017174447.ZM4784@xxxxxxxxxxxxxxxxxxxxxxx> <20011018011512.C17952@xxxxxxxxxxxxxx> <011017175757.ZM5134@xxxxxxxxxxxxxxxxxxxxxxx> <20011018041354.A18565@xxxxxxxxxxxxxx> <20011018004659.A13346@xxxxxxxxxxxxxxxxxx>
On Thu, Oct 18, 2001 at 00:46:59 -0400, Sweth Chandramouli wrote:
> . I'm not sure why you'd want to do that in an interactive
> shell, though.
Perhaps to have something like that, to write information about the
current shell to a file?
testfct () {
exec >| /tmp/file
echo "setopt:"
setopt
echo "unsetopt:"
unsetopt
echo "jobs:"
jobs
exec > /dev/tty
}
I think I'll take
TRAPCLD () { [[ -o interactive && -n $TTY ]] && precmd > $TTY }
--
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