mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-08 11:12:36 +02:00
fix readline vi-mode mark commands to prevent errors if user types an arrow key where a mark name is expected; fix for non-ascii characters being included in variable names if the system isalnum(3) returns success for the character
This commit is contained in:
+2
-1
@@ -78,7 +78,8 @@
|
||||
|
||||
#define DIGIT(c) ((c) >= '0' && (c) <= '9')
|
||||
|
||||
#define ISWORD(c) (ISLETTER(c) || DIGIT(c) || ((c) == '_'))
|
||||
#define ISNAME(c) (IN_CTYPE_DOMAIN(c) && (sh_syntaxtab[(unsigned char)c] & CNAME))
|
||||
#define ISNAMESTART(c) (IN_CTYPE_DOMAIN(c) && (sh_syntaxtab[(unsigned char)c] & CNAMESTART))
|
||||
|
||||
#define HEXVALUE(c) \
|
||||
(((c) >= 'a' && (c) <= 'f') \
|
||||
|
||||
Reference in New Issue
Block a user