From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22668 invoked from network); 11 Oct 1999 13:03:02 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 11 Oct 1999 13:03:02 -0000 Received: (qmail 1743 invoked by alias); 11 Oct 1999 13:02:30 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2667 Received: (qmail 1736 invoked from network); 11 Oct 1999 13:02:29 -0000 Date: Mon, 11 Oct 1999 14:55:14 +0200 From: =?iso-8859-1?Q?Thomas_K=F6hler?= To: zsh-users@sunsite.auc.dk Subject: Re: coproc tutorial (Re: questions) Message-ID: <19991011145514.B24175@picard.franken.de> Mail-Followup-To: zsh-users@sunsite.auc.dk References: <199910111045.MAA03145@beta.informatik.hu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Mutt 1.0pre3i In-Reply-To: <199910111045.MAA03145@beta.informatik.hu-berlin.de> X-Operating-System: Linux picard 2.2.11 X-Editor: VIM - Vi IMproved 5.5 http://www.vim.org/ X-IRC: tirc-1.2; Nick: jeanluc X-URL: http://home.pages.de/~jeanluc/ On Mon, Oct 11, 1999 at 12:45:16PM +0200, Sven Wischnowsky wrote: >=20 > Chris Hansen wrote: >=20 > > #!/bin/zsh -i > >=20 > > coproc /usr/bin/nslookup > >=20 > > while true; do > > TEST=3D">" > > NSLOUT=3D" " > > while [[ $TEST !=3D $NSLOUT ]] ; do > > print -n $NSLOUT > > read -pk NSLOUT > > done > > read 'QUERY?>' > > print -p $QUERY > > done >=20 > 3.1.6-pws-something (at least the latest pws-6) has Functions/Misc/nslook= up > 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). Now this is really cool... how do I enable this? :-) > To workers: seems like noone found this interesting enough to improve > the code I hacked up. Maybe sometime we could write a generic function=20 > for this task... Allowing completion from within all stdin/stdout-bound programs? ncftp -L is a candidate here, amongst others... > Bye > Sven CU, Thomas --=20 Thomas K=F6hler Email: jean-luc@picard.franken.de | LCARS - Linux for <>< WWW: http://home.pages.de/~jeanluc/ | Computers on All IRC: jeanluc | Real Starships PGP public key: http://www.mayn.de/users/jean-luc/PGP-Public.asc