]> git.corax.cc Git - toolbox/commit
toolbox.sh: Suppress errors in command_not_found_handle()
authorMatthias Kruk <m@m10k.eu>
Thu, 6 Oct 2022 06:21:44 +0000 (15:21 +0900)
committerMatthias Kruk <m@m10k.eu>
Thu, 6 Oct 2022 06:21:44 +0000 (15:21 +0900)
commit35cfcb5f018bda06e0aae2d87a637fda3693bb3c
treef224696d354a2b234eca9f532299d32f81423734
parentde8e07924f98918186a750bedcfaa8ff25207146
toolbox.sh: Suppress errors in command_not_found_handle()

When the user enters an unknown command, or a script contains an
unknown command, the command_not_found_handle() function provides
suggestions if the unknown command appears to be in a module.
However, because the function does not suppress errors when looking
for modules in the module search paths, it emits errors if any of
the search paths do not exist.

This commit makes the command_not_found_handle() function suppress
errors if any of the module search paths do not exist.
toolbox.sh