#StackBounty: #zsh #macos #autocorrection Why does Zsh correct ssh User@ip1 to User@ip2, and how to stop it?

Bounty: 50

On Mac OS X 10.9 and zsh version 5.0.2 (x86_64-apple-darwin13.0) the ssh user@192.168.13.2 command traps a correct to ssh User@192.168.12.2 [nyae].

I don’t want to disable zsh correction on the ssh command completely.

How figure out why zsh wants to make this correct, and prevent it from occurring?

Regression:

  • ssh User@192.168.13.3 also zsh correct to User@192.168.12.2
  • ssh 192.168.13.2 does not trap the zsh correct to ssh 192.168.12.2
  • ssh User@192.168.13.4 does not zsh correct to User@192.168.12.2
  • there is a .zsh_history file of 2013 while zsh is configured for a maximum history of 2000 commands
  • removing all occurences of ssh User@192.168.12.2 from .zsh_history doesn’t improve
  • both 192.168.13.2 and 192.168.12.2 list as host on tab completion
  • minimal .zshrc where the issue occurs contains only: setopt correctall


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.