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

Re: Problem with zip completion



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