diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-09 11:56:20 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-09 11:56:20 +0000 |
commit | 2512681578d1606860bb1d1eab76755aa589f24c (patch) | |
tree | 541795235e4afb6be6a1f178bffbaee6fdc7c996 | |
parent | a65e197d2ab69181e615e32409b69469e509eaa3 (diff) | |
download | zsh-2512681578d1606860bb1d1eab76755aa589f24c.tar.gz zsh-2512681578d1606860bb1d1eab76755aa589f24c.tar.xz zsh-2512681578d1606860bb1d1eab76755aa589f24c.zip |
make nslookup function more like real nslookup (11277)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Functions/Misc/nslookup | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index fe6497e9b..5806a9c59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-05-09 Sven Wischnowsky <wischnow@zsh.org> + + * 11277: Functions/Misc/nslookup: make nslookup function more like + real nslookup + 2000-05-09 Tanaka Akira <akr@zsh.org> * 11276: fix build on OpenBSD. 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 '* > ' |