zsh-workers
 help / color / mirror / code / Atom feed
From: Tanaka Akira <akr@m17n.org>
To: zsh-workers@sunsite.auc.dk
Subject: zfanon and nslookup
Date: 09 May 2000 20:44:59 +0900	[thread overview]
Message-ID: <hvozoq0gd6s.fsf@serein.m17n.org> (raw)

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


                 reply	other threads:[~2000-05-09 11:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=hvozoq0gd6s.fsf@serein.m17n.org \
    --to=akr@m17n.org \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).