From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4960 invoked from network); 12 Oct 1999 08:52:57 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 12 Oct 1999 08:52:57 -0000 Received: (qmail 21377 invoked by alias); 12 Oct 1999 08:52:36 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2672 Received: (qmail 21369 invoked from network); 12 Oct 1999 08:52:35 -0000 Date: Tue, 12 Oct 1999 10:42:42 +0200 From: =?iso-8859-1?Q?Thomas_K=F6hler?= To: zsh-users@sunsite.auc.dk Subject: Re: coproc tutorial (Re: questions) Message-ID: <19991012104242.A7824@picard.franken.de> Mail-Followup-To: zsh-users@sunsite.auc.dk References: <199910120653.IAA03827@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.0pre4i In-Reply-To: <199910120653.IAA03827@beta.informatik.hu-berlin.de>; from wischnow@informatik.hu-berlin.de on Tue, Oct 12, 1999 at 08:53:29AM +0200 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 Tue, Oct 12, 1999 at 08:53:29AM +0200, Sven Wischnowsky wrote: >=20 > Thomas Koehler wrote: >=20 > > > 3.1.6-pws-something (at least the latest pws-6) has Functions/Misc/ns= lookup > > > 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). > >=20 > > Now this is really cool... how do I enable this? :-) >=20 > Well, new style completion with the usual call to `compinit' (after > autoloading and things), and then just make `nslookup' autoloaded and > call it. For my version of `nslookup' here, it works, but as Bart > mentioned in 2668, it doesn't work everywhere (and I don't feel like > spending more time trying to improve the beast, it was mainly a hack > to show how the `compcontext' parameter can be used). Ah. OK, tried it now, but it doesn't work: nslookup on my machine (Debian GNU/Linux) won't work as a coprocess (has this to do with the fact that it refuses to read from stdin?). Bad luck here... > > > To workers: seems like noone found this interesting enough to improve > > > the code I hacked up. Maybe sometime we could write a generic functio= n=20 > > > for this task... > >=20 > > Allowing completion from within all stdin/stdout-bound programs? > > ncftp -L is a candidate here, amongst others... >=20 > ;-) there are may of them... :-) > 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