zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: fix nslookup function
@ 2015-07-18  6:34 Oliver Kiddle
  0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2015-07-18  6:34 UTC (permalink / raw)
  To: Zsh workers

At some point nslookup stopped printing the name and IP of the default
DNS server when you start it. This breaks our nslookup function. The
function is an example zpty based wrapper around a REPL style program
which uses vared to allow you to use the zsh line editor for nslookup.
The following fix will also work with an old nslookup.

Oliver

diff --git a/Functions/Misc/nslookup b/Functions/Misc/nslookup
index 150bd03..8c11909 100644
--- a/Functions/Misc/nslookup
+++ b/Functions/Misc/nslookup
@@ -26,8 +26,7 @@ zstyle -s ':nslookup' pager tmp &&
 
 zpty nslookup command nslookup "${(q)@}"
 
-zpty -r nslookup line '*
-> '
+zpty -r nslookup line '*> '
 print -nr "$line"
 
 while line=''; vared -he "$pmpt[@]" line; do


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

only message in thread, other threads:[~2015-07-18  6:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-18  6:34 PATCH: fix nslookup function Oliver Kiddle

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