Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: fix nslookup function
- X-seq: zsh-workers 35815
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: fix nslookup function
- Date: Sat, 18 Jul 2015 08:34:22 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1437201263; bh=zzzyhbUkpZpCHCZGWEmyLalTqYSuU3y3qSedMBmzjsI=; h=From:To:Subject:Date:From:Subject; b=VyVRsL+Xoh6SIzXHonxJoMHhIc52x7G3dTDgtgPizE0ALhgxF9lEIMgL7C/8Khy3stz3y0LN8b5JG+EM25IMNcboYITyZlCW+1HpxNX9Es+rlufqiGhSapbzGGUAgF7vJXGVYcAtHe+bxk/R8d+DSi2lgLbs4lx6QonBxmZPznZygKRqjFIoi1vhCCU+3kLSRte17opF7+9MMWPMM+XG+qOrJG/R4T+b7Krixj70PkiPakLkGKLUVaoySVF48/FJqu3bifZbZ4zrdgf7/JEhx+CBjVAggLcub32H2/4jmFDZYq+uh0zI7HkHH4ArTHEVE0g6SW5G/OUWT70kfzqBZg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author