When use zsh instead of bash, shell become very annoying.

Even if I do not edit the shell buffer, but changing its size, there will be extra lines generated in the buffer, which is not expected.

GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2020-09-20