]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] revert the "version" interactive command from nslookup
authorEvan Hunt <each@isc.org>
Mon, 3 Mar 2014 18:05:55 +0000 (10:05 -0800)
committerEvan Hunt <each@isc.org>
Mon, 3 Mar 2014 18:05:55 +0000 (10:05 -0800)
bin/dig/nslookup.c
bin/dig/nslookup.docbook

index 78239cdb7d8ba6050efcf1b83981b20eb26fd20f..21929ba610c148e6eafe77f227935e3370b186ce 100644 (file)
@@ -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);
index 88d3d6a2e59e2b0bc9f12cc904be4c6b2cb9fa58..022de672b80f8c03922dbdb6babadfb65e49c219 100644 (file)
@@ -133,6 +133,11 @@ nslookup -query=hinfo  -timeout=10
 </programlisting>
       <!-- </informalexample> -->
     </para>
+    <para>
+      The <option>-version</option> option causes
+      <command>nslookup</command> to print the version
+      number and immediately exits.
+    </para>
 
   </refsect1>
 
@@ -230,18 +235,6 @@ nslookup -query=hinfo  -timeout=10
         </listitem>
       </varlistentry>
 
-      <varlistentry>
-        <term><constant>version</constant></term>
-        <listitem>
-          <para>
-            Prints the version number. (This can also be
-           done from the command line by using
-           <option>-version</option>, which will print
-           the version number and immediately exit.)
-          </para>
-        </listitem>
-      </varlistentry>
-
       <varlistentry>
         <term><constant>exit</constant></term>
         <listitem>