我偶然遇到了这个,从那以后它一直在唠叨我:
% setopt
alwaystoend
autocd
autonamedirs
...
sharehistory
shinstdin
zle
%
% setopt | grep zle
# nothing printed
%
% setopt | cat -vet
alwaystoend$
autocd$
autonamedirs$
...
sharehistory$
shinstdin$
# no zle here!
如您所见,grep
无法检测到,并且将tozle
的输出通过管道传输以检测任何不规则字符(并不是说它更有意义)也没有显示!setopt
cat
zle