linux - Why can't I grep zle from setopt? -


i came across chance, , it's been nagging me since:

% setopt alwaystoend autocd autonamedirs ... sharehistory shinstdin zle % % setopt | grep zle # nothing printed % % setopt | cat -vet alwaystoend$ autocd$ autonamedirs$ ... sharehistory$ shinstdin$ # no zle here! 

as can see grep fails detect zle, , piping output of setopt cat in order detect irregular characters (not make more sense) shows no zle either!

man zshzle ...  if   zle option set (which default in interactive shells) , shell input        attached terminal, user able edit command lines. 

since piping output of setopt process, shell turns off command line editing. (although line of documentation refers shell input being attached terminal, captures essence of issue. nothing funny going on, shell turning off option.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -