Bugzilla – Bug 1183665
zsh command-not-found function does not probing /sbin
Last modified: 2021-03-18 06:16:17 UTC
Hi, I have recently switched to openSUSE tumbleweed and I found something weird with zsh prompt. When typing some command without sudo and is actually in /sbin, bash could resolve it and prompt : user@localhost:~> reboot Absolute path to 'reboot' is '/usr/sbin/reboot', so running it may require superuser privileges (eg. root). While zsh only prompt : zsh: command not found: reboot I'm on a clean install system with default ohmyzsh config. Neither bash or zsh have /sbin in $PATH. Also note that zsh with Leap 15.2 does not have this bug. It could correctly resolve if command is in /sbin and prompt the same thing with bash.