diff --git a/tools/shell/src/shellAuto.c b/tools/shell/src/shellAuto.c index bcb2143b4e..97ed3dfdb9 100644 --- a/tools/shell/src/shellAuto.c +++ b/tools/shell/src/shellAuto.c @@ -1684,7 +1684,7 @@ bool matchEnd(TAOS* con, SShellCmd* cmd) { char* last = lastWord(ps); char* elast = strrchr(last, '.'); // find end last if(elast) { - last = elast; + last = elast + 1; } if(strlen(last) < 2 ) {