diff --git a/CHANGES b/CHANGES index 73ea2d392c..970985ef55 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +4132. [cleanup] dig: added +rd as a synonym for +recurse, + added +class as an unabbreviated alternative + to +cl. [RT #39686] + 4130. [bug] The compatability shim for *printf() misprinted some large numbers. [RT #39586] diff --git a/bin/dig/dig.c b/bin/dig/dig.c index 135d0a8be4..6bb5733146 100644 --- a/bin/dig/dig.c +++ b/bin/dig/dig.c @@ -836,8 +836,9 @@ plus_option(char *option, isc_boolean_t is_batchfile, goto invalid_option; } break; - case 'l': /* cl */ - FULLCHECK("cl"); + case 'l': /* class */ + /* keep +cl for backwards compatibility */ + FULLCHECK2("cl", "class"); noclass = ISC_TF(!state); break; case 'm': /* cmd */ @@ -989,6 +990,10 @@ plus_option(char *option, isc_boolean_t is_batchfile, break; case 'r': switch (cmd[1]) { + case 'd': /* rdflag */ + FULLCHECK("rdflag"); + lookup->recurse = state; + break; case 'e': switch (cmd[2]) { case 'c': /* recurse */ diff --git a/bin/dig/dig.docbook b/bin/dig/dig.docbook index b05d5d353b..52b0519592 100644 --- a/bin/dig/dig.docbook +++ b/bin/dig/dig.docbook @@ -436,6 +436,9 @@ that keyword. Other keywords assign values to options like the timeout interval. They have the form . + Keywords may be abbreviated, provided the abbreviation is + unambiguous; for example, +cd is equivalent + to +cdflag. The query options are: @@ -551,7 +554,7 @@ - + Display [do not display] the CLASS when printing the @@ -763,6 +766,15 @@ + + + + + A synonym for +[no]recurse. + + + +