[master] revert the "version" interactive command from nslookup

This commit is contained in:
Evan Hunt 2014-03-03 10:05:55 -08:00
parent f4ada59b35
commit 9f5222620c
2 changed files with 5 additions and 14 deletions

View 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);

View 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>