mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-09 13:10:50 +02:00
commit bash-20150123 snapshot
This commit is contained in:
+2
-2
@@ -5409,14 +5409,14 @@ sv_shcompat (name)
|
||||
return;
|
||||
}
|
||||
/* Handle decimal-like compatibility version specifications: 4.2 */
|
||||
if (isdigit (val[0]) && val[1] == '.' && isdigit (val[2]) && val[3] == 0)
|
||||
if (ISDIGIT (val[0]) && val[1] == '.' && ISDIGIT (val[2]) && val[3] == 0)
|
||||
{
|
||||
tens = val[0] - '0';
|
||||
ones = val[2] - '0';
|
||||
compatval = tens*10 + ones;
|
||||
}
|
||||
/* Handle integer-like compatibility version specifications: 42 */
|
||||
else if (isdigit (val[0]) && isdigit (val[1]) && val[2] == 0)
|
||||
else if (ISDIGIT (val[0]) && ISDIGIT (val[1]) && val[2] == 0)
|
||||
{
|
||||
tens = val[0] - '0';
|
||||
ones = val[1] - '0';
|
||||
|
||||
Reference in New Issue
Block a user