From 50a83aeff90004aa2ec6279e60c7b8d4dec0efcf Mon Sep 17 00:00:00 2001 From: Burt P Date: Fri, 27 Dec 2019 21:15:59 -0600 Subject: shell: fix key_mi_tag() new flag ^ wasn't skipped Signed-off-by: Burt P --- shell/shell.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shell/shell.c b/shell/shell.c index 3fbf888b..09a86dae 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -2256,11 +2256,13 @@ gboolean key_value_has_vendor_string(const gchar *key) { } gchar *key_mi_tag(const gchar *key) { + static char flag_list[] = "*!^"; gchar *p = (gchar*)key, *l, *t; if (key_is_flagged(key)) { l = strchr(key+1, '$'); - while(p < l && (*p == '$' || *p == '*' || *p == '!') ) { + if (*p == '$') p++; /* skip first if exists */ + while(p < l && strchr(flag_list, *p)) { p++; } if (strlen(p)) { -- cgit v1.2.3