From 9f5222620cd3b68f88a5d8cc01b194ea4abb0754 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Mon, 3 Mar 2014 10:05:55 -0800 Subject: [PATCH] [master] revert the "version" interactive command from nslookup --- bin/dig/nslookup.c | 2 -- bin/dig/nslookup.docbook | 17 +++++------------ 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/bin/dig/nslookup.c b/bin/dig/nslookup.c index 78239cdb7d..21929ba610 100644 --- a/bin/dig/nslookup.c +++ b/bin/dig/nslookup.c @@ -754,8 +754,6 @@ do_next_command(char *input) { show_settings(ISC_TRUE, ISC_TRUE); } else if (strcasecmp(ptr, "exit") == 0) { in_use = ISC_FALSE; - } else if (strcasecmp(ptr, "version") == 0) { - version(); } else if (strcasecmp(ptr, "help") == 0 || strcasecmp(ptr, "?") == 0) { printf("The '%s' command is not yet implemented.\n", ptr); diff --git a/bin/dig/nslookup.docbook b/bin/dig/nslookup.docbook index 88d3d6a2e5..022de672b8 100644 --- a/bin/dig/nslookup.docbook +++ b/bin/dig/nslookup.docbook @@ -133,6 +133,11 @@ nslookup -query=hinfo -timeout=10 + + The option causes + nslookup to print the version + number and immediately exits. + @@ -230,18 +235,6 @@ nslookup -query=hinfo -timeout=10 - - version - - - Prints the version number. (This can also be - done from the command line by using - , which will print - the version number and immediately exit.) - - - - exit