diff --git a/tools/shell/src/shellAuto.c b/tools/shell/src/shellAuto.c index 9ea6626e22..bcb2143b4e 100644 --- a/tools/shell/src/shellAuto.c +++ b/tools/shell/src/shellAuto.c @@ -1682,6 +1682,11 @@ bool matchEnd(TAOS* con, SShellCmd* cmd) { bool ret = false; char* ps = strndup(cmd->command, cmd->commandSize); char* last = lastWord(ps); + char* elast = strrchr(last, '.'); // find end last + if(elast) { + last = elast; + } + if(strlen(last) < 2 ) { goto _return; }