Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: coproc tutorial (Re: questions)
- X-seq: zsh-users 2665
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: coproc tutorial (Re: questions)
- Date: Mon, 11 Oct 1999 12:45:16 +0200 (MET DST)
- In-reply-to: Chris Hansen's message of Sun, 3 Oct 1999 22:21:16 -0700 (MST)
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
Chris Hansen wrote:
> #!/bin/zsh -i
>
> coproc /usr/bin/nslookup
>
> while true; do
> TEST=">"
> NSLOUT=" "
> while [[ $TEST != $NSLOUT ]] ; do
> print -n $NSLOUT
> read -pk NSLOUT
> done
> read 'QUERY?>'
> print -p $QUERY
> done
3.1.6-pws-something (at least the latest pws-6) has Functions/Misc/nslookup
which uses `vared' to read the user input, thus allowing command line
editing. Together with the new completion system this function will
also give you completion *inside* nslookup (and not only nslookup's
arguments).
To workers: seems like noone found this interesting enough to improve
the code I hacked up. Maybe sometime we could write a generic function
for this task...
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author