From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2441 invoked from network); 31 May 2001 07:34:52 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 31 May 2001 07:34:52 -0000 Received: (qmail 24780 invoked by alias); 31 May 2001 07:34:45 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14602 Received: (qmail 24768 invoked from network); 31 May 2001 07:34:44 -0000 From: Sven Wischnowsky Date: Thu, 31 May 2001 09:33:48 +0200 (MET DST) Message-Id: <200105310733.JAA09718@beta.informatik.hu-berlin.de> To: zsh-workers@sunsite.dk Subject: Re: Problems with Functions/Misc/nslookup In-Reply-To: <1010530180127.ZM3076@candle.brasslantern.com> Bart Schaefer wrote: > Most seriously, on my system it doesn't always notice when the prompt is > back: > > schaefer[502] nslookup 4.0.1-pre-5 > Default Server: ns.best.com > Address: 204.156.128.1 > > > set querytype=mx > (hangs here until interrupted) > > I think this may be because nslookup does not print anything at all (not > even a blank line) before printing the prompt, after executing a `set' > command. It does find the prompt after a name lookup (see below). Yes, that pattern used for zpty -r has to be a bit more intelligent. > Then there's this interesting completion behavior: > > ... > > > set querytype=m > > set querytype=m:\{a-zA-Z\}=\{A-Za-z\}\ r:\|\[-._,\]=\*\*\ r:\|=\*\* > > I'm pretty sure it wasn't supposed to literally insert a matcher spec there. > :-) Oops. _values got slightly confused when not given a separator character. Bye Sven Index: Completion/Base/Utility/_values =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Base/Utility/_values,v retrieving revision 1.2 diff -u -r1.2 _values --- Completion/Base/Utility/_values 2001/05/08 12:24:21 1.2 +++ Completion/Base/Utility/_values 2001/05/31 07:32:45 @@ -84,6 +84,7 @@ # We add the separator character as a autoremovable suffix unless # we have only one possible value left. + sep=() [[ ${#snames}+${#names}+${#onames} -ne 1 ]] && compvalues -s sep && expl=( "-qS$sep" "$expl[@]" ) sep=( "-qS$sep" ) Index: Functions/Misc/nslookup =================================================================== RCS file: /cvsroot/zsh/zsh/Functions/Misc/nslookup,v retrieving revision 1.9 diff -u -r1.9 nslookup --- Functions/Misc/nslookup 2001/04/02 13:04:05 1.9 +++ Functions/Misc/nslookup 2001/05/31 07:32:45 @@ -36,8 +36,8 @@ zpty -w nslookup "$line" - zpty -r nslookup line '* -> ' + zpty -r nslookup line '(|* +)> ' if [[ -n "$pager" && ${#${(f)line}} -gt LINES ]]; then print -nr "$line" | eval "$pager" else -- Sven Wischnowsky wischnow@informatik.hu-berlin.de