On Tue, Dec 8, 2020 at 10:04 AM Testing Purposes < raspberry.teststr...@gmail.com> wrote:
> ---------- > readline.h defines a C preprocessor variable that should be treated as an > integer, As it says it's an integer. > RL_READLINE_VERSION, which may be used to conditionally compile > application code depending on the installed Readline version. The value is > a hexadecimal encoding of the major and minor version numbers of the > library, of the form 0xMMmm. MM is the two-digit major version number; mm > is the two-digit minor version number. For Readline 4.2, for example, the > value of RL_READLINE_VERSION would be 0x0402. > ---------- > > If the version number for readline follows the "0xMMmm" format, shouldn't > the value of "rl_readline_version" be "0x0801" for Bash 5.1 and "0x0800" > for Bash 5.0? In other words, the "leading 0" after the "x" appears to be > missing. The integer 0x801 is the same as 0x0801. # echo $(( 0x801 )) 2049 # echo $(( 0x0801 )) 2049 # echo $(( 0x00000801 )) 2049 #