From 2f8d42ce8308fa4668213e8410d5abb204b0e712 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 20 Nov 2015 06:10:38 -0800 Subject: TXR_COMPAT option. * txr.c (txr_main): Implement handling of TXR_COMPAT environment variable. Also, before entering interactive mode, if compatibility has been set via TXR_COMPAT, emit an informative message about this. * txr.1: Documented TXR_COMPAT. --- txr.1 | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'txr.1') diff --git a/txr.1 b/txr.1 index 067e9b85..045d760e 100644 --- a/txr.1 +++ b/txr.1 @@ -664,6 +664,12 @@ supports that behavior, or even that exact version. If the option is specified more than once, the behavior is not specified. +Compatibility can also be requested via the +.code TXR_COMPAT +environment variable instead of the +.code -C +option. + For more information, see the COMPATIBILITY section. .meIP >> --gc-delta= number @@ -37894,7 +37900,31 @@ option can be used to request emulation of old behavior. The option was introduced in \*(TX 98, and so the oldest \*(TX version which can be emulated is \*(TX 97. -Here are version values which have a special meaning as arguments to the +Side effects occur in the processing of the option. If the option is specified +multiple times, the behavior is unspecified. + +.coNP Environment variable @ TXR_COMPAT + +If the +.code TXR_COMPAT +environment variable exists, and its value is not en empty string, +it must contain a decimal integer. Its value is taken by \*(TX as a request +to emulate old behaviors, just like the value of the +.code -C +option. + +If the variable has incorrect contents or an out-of-range value, +\*(TX will print an error diagnostic and exit. + +If both +.code -C +and the +.code TXR_COMPAT +environment variable are supplied, the behavior is unspecified. + +.coNP Compatibility Version Values + +The following version values which have a special meaning as arguments to the .code -C option, along with a description of what behaviors are affected. For each of these version values, the described behaviors are provided if -- cgit v1.2.3