* PATCH: Re: zfanon and nslookup
@ 2000-05-09 11:53 Sven Wischnowsky
0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2000-05-09 11:53 UTC (permalink / raw)
To: zsh-workers
Tanaka Akira wrote:
> I found that the function nslookup may causes trouble with zfanon.
>
> Z:akr@coulee% Src/zsh -f
> coulee% autoload -U nslookup zfinit
> coulee% zfinit
> coulee% zfanon ftp.zsh.org
> >
>
> Hm. This prompt is for nslookup.
Oops. But apart from this: maybe zfanon should use `command
nslookup'. Dunno.
Bye
Sven
Index: Functions/Misc/nslookup
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Misc/nslookup,v
retrieving revision 1.3
diff -u -r1.3 nslookup
--- Functions/Misc/nslookup 2000/05/05 11:10:47 1.3
+++ Functions/Misc/nslookup 2000/05/09 11:52:24
@@ -1,6 +1,11 @@
# Simple wrapper function for `nslookup'. With completion if you are using
# the function based completion system.
+if [[ $argv[(I)-] -eq 0 && $argv[(I)[^-]*] -ne 0 ]]; then
+ command nslookup "$@"
+ return
+fi
+
setopt localoptions localtraps completealiases
local tmp line compcontext=nslookup curcontext='nslookup:::' pmpt
@@ -19,7 +24,7 @@
[[ -z "$pager" ]] && pager="${opager:-more}"
(( $#pmpt )) || pmpt=(-p '> ')
-zpty nslookup nslookup
+zpty nslookup nslookup "$@"
zpty -r nslookup line '*
> '
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-05-09 11:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-09 11:53 PATCH: Re: zfanon and nslookup Sven Wischnowsky
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).