help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to call something when a command is not found?


From: Eduardo Bustamante
Subject: Re: How to call something when a command is not found?
Date: Tue, 9 Mar 2021 13:45:15 -0800

On Tue, Mar 9, 2021 at 1:40 PM Peng Yu <pengyu.ut@gmail.com> wrote:
>
> Hi,
>
> On ubuntu, if a command is not found, it will be prompt to get it
> installed. Does anybody know this is achieved in bash? Thanks.
>
> $ shc
> Command 'shc' not found, but can be installed with:
> sudo apt install shc
> Do you want to install it? (N/y)y

Lookup `command_not_found_handle' in your Bash manual



reply via email to

[Prev in Thread] Current Thread [Next in Thread]