about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-11-06 07:06:03 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-11-06 07:06:03 +0000
commit733ee2eb2a62ff37204a443aea28ffec6264d54d (patch)
tree6d12df23f40cf27534589dbb615e946e90667165
parent12ca8495d4754d4c57edc5214d3013fad86e6886 (diff)
downloadzsh-733ee2eb2a62ff37204a443aea28ffec6264d54d.tar.gz
zsh-733ee2eb2a62ff37204a443aea28ffec6264d54d.tar.xz
zsh-733ee2eb2a62ff37204a443aea28ffec6264d54d.zip
Adapt nslookup for 13123.
-rw-r--r--ChangeLog3
-rw-r--r--Functions/Misc/nslookup2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bc2a167e2..833aad9db 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-11-05  Bart Schaefer  <schaefer@zsh.org>
 
+	* 13124: Functions/Misc/nslookup: Use "command nslookup" as it's
+	now possible to call the nslookup function recursively from zpty.
+	
 	* unposted: Src/Modules/zpty.c: Cloned shell is non-interactive
 	for purposes of calling zexit(), so it doesn't print job status,
 	save history, etc.
diff --git a/Functions/Misc/nslookup b/Functions/Misc/nslookup
index d4f7e96b9..5b49ae9d2 100644
--- a/Functions/Misc/nslookup
+++ b/Functions/Misc/nslookup
@@ -24,7 +24,7 @@ zstyle -s ':nslookup' pager tmp &&
     [[ -z "$pager" ]] && pager="${opager:-more}"
 (( $#pmpt )) || pmpt=(-p '> ')
 
-zpty nslookup nslookup "$@"
+zpty nslookup command nslookup "${(q)@}"
 
 zpty -r nslookup line '*
 > '