From 2512681578d1606860bb1d1eab76755aa589f24c Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 9 May 2000 11:56:20 +0000 Subject: make nslookup function more like real nslookup (11277) --- Functions/Misc/nslookup | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Functions') diff --git a/Functions/Misc/nslookup b/Functions/Misc/nslookup index 79d76dbe5..d4f7e96b9 100644 --- a/Functions/Misc/nslookup +++ b/Functions/Misc/nslookup @@ -1,6 +1,11 @@ # Simple wrapper function for `nslookup'. With completion if you are using # the function based completion system. +if [[ $argv[(I)-] -eq 0 && $argv[(I)[^-]*] -ne 0 ]]; then + command nslookup "$@" + return +fi + setopt localoptions localtraps completealiases local tmp line compcontext=nslookup curcontext='nslookup:::' pmpt @@ -19,7 +24,7 @@ zstyle -s ':nslookup' pager tmp && [[ -z "$pager" ]] && pager="${opager:-more}" (( $#pmpt )) || pmpt=(-p '> ') -zpty nslookup nslookup +zpty nslookup nslookup "$@" zpty -r nslookup line '* > ' -- cgit 1.4.1