Closed spreiter closed 8 months ago
Hi @spreiter. ypcat
is not installed in macOS either, and maybe in other OSes too. The command is ypcat hosts 2>/dev/null
so it should fail silently if the ypcat
command is not found. I wonder why are you seeing an error and why does the completion fail.
Maybe this is a system related issue. In the example below I pressed TAB after ssh wo
> ssh woInstall package 'yp-tools' to provide command 'ypcat'? [N/y]
OK, seems to be related to the PackageKitCommandNotFound package.
But after the question is raised, even pressing n
does not return to my previous input and I have to abort with Ctrl-C.
Thanks for detailing the error you're getting. I think the solution here is to test if ypcat is an available command before calling it. I'll update the script.
Elegant solution. Thanks! ❤️
Prerequisites
Bug description
On EL8
ypcat
is not installed by default. Can this be added to some requirements in the readme or checked during installation?Related to #6
Steps to reproduce
Using completion on hostnames failed with a message that
ypcat
is not installed.Current behavior
failure message and one has to abort the completion process entirely.
Expected behavior
Warn during installation that ypcat is required
zimfw info
Additional context
No response