zsh-workers
 help / color / mirror / code / Atom feed
* zfanon and nslookup
@ 2000-05-09 11:44 Tanaka Akira
  0 siblings, 0 replies; only message in thread
From: Tanaka Akira @ 2000-05-09 11:44 UTC (permalink / raw)
  To: zsh-workers

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.

coulee% set -x
coulee% zfanon ftp.zsh.org
+Src/zsh:5> zfanon ftp.zsh.org
+zfanon:3> emulate -L zsh
+zfanon:5> [[  == :zf* ]]
+zfanon:5> local curcontext=:zfanon
+zfanon:6> local opt opt_1 dir
+zfanon:8> getopts :1 opt
+zfanon:12> ((  OPTIND > 1  ))
+zfanon:14> [[ -z  ]]
+zfanon:19> local domain host
+zfanon:21> [[ coulee == *.* ]]
+zfanon:24> [[ -f /etc/resolv.conf ]]
+zfanon:26> domain=+zfanon:26> awk /domain/ { print $2 } /etc/resolv.conf
+zfanon:26> domain= 
+zfanon:27> [[ -n  ]]
+zfanon:30> [[ -z  ]]
+zfanon:31> host=+zfanon:31> host=+zfanon:31> awk /Name:/ { print $2 }
+zfanon:31> nslookup coulee
+nslookup:4> setopt localoptions localtraps completealiases
+nslookup:6> local tmp line compcontext=nslookup curcontext=nslookup::: pmpt
+nslookup:7> local pager opager=less
+nslookup:8> typeset +g -x PAGER=cat
+nslookup:10> zmodload -e zsh/zpty
+nslookup:10> zmodload -i zsh/zpty
+nslookup:12> trap return 130 INT
+nslookup:13> trap zpty -d nslookup EXIT
+nslookup:15> pmpt=( ) 
+nslookup:16> zstyle -s :nslookup prompt tmp
+nslookup:17> zstyle -s :nslookup rprompt tmp
+nslookup:18> zstyle -s :nslookup pager tmp
+nslookup:20> ((  0  ))
+nslookup:20> pmpt=( -p >  ) 
+nslookup:22> zpty nslookup nslookup
+nslookup:24> zpty -r nslookup line *
> 
+nslookup:26> print -nr Default Server:  fs.m17n.org
Address:  192.47.44.2

> 
+nslookup:28> line= 
+nslookup:28> vared -he -p >  line
> 

So, the function nslookup shouldn't work interactively if a query is
specified on a command line.
-- 
Tanaka Akira


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-05-09 11:43 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:44 zfanon and nslookup Tanaka Akira

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).