Bug 1183665 - zsh command-not-found function does not probing /sbin
Summary: zsh command-not-found function does not probing /sbin
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: x86-64 Linux
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: Ismail Dönmez
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-17 17:16 UTC by Liu
Modified: 2021-03-18 06:16 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Liu 2021-03-17 17:16:59 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.