Weblog (or Blog)


Tuesday, May 14, 2019

Strange Terminal Behavior

I'm using Mojave 10.14.5 on a 2017 Macbook Pro. In Terminal, when I type the command popd, as soon as I press Return or Space, the following is added to the end of my command:

;2D;2D;2D;2Ddopp

The pop command works, but I also get this output:

-bash: 2D: command not found
-bash: 2D: command not found
-bash: 2D: command not found
-bash: 2Ddopp: command not found

This also happens with the dirs command. Is this normal behavior for Terminal? If not, how can I fix it? If you know, please send me an email by clicking Comment in the left sidebar.

UPDATE 2019-05-21: I traced the problem to the text expander TypeIt4Me. Their support responded to my inquiry and advised me to use Preferences|Special to tell TypeIt4Me to ignore (i.e., not expand) Terminal. That solved my problem.

They continued to work on the issue and found that if the box labeled "Correct typos with AppleSpell" under Preferences|AutoCorrect is checked, AppleSpell will correct things in Terminal.

posted at: 08:34 | path: /bash | permanent link