Why does Zsh correct ssh User@ip1 to User@ip2, and how to stop it?
0
votes
0
answers
138
views
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
$ cat .zshrc
setopt correctall
Asked by Pro Backup
(5114 rep)
Aug 12, 2020, 11:37 AM
Last activity: Aug 20, 2020, 03:59 PM
Last activity: Aug 20, 2020, 03:59 PM