[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to call something when a command is not found?
From: |
Peng Yu |
Subject: |
How to call something when a command is not found? |
Date: |
Tue, 9 Mar 2021 15:39:26 -0600 |
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
--
Regards,
Peng
- How to call something when a command is not found?,
Peng Yu <=
- Re: How to call something when a command is not found?, Eduardo Bustamante, 2021/03/09
- Re: How to call something when a command is not found?, Marco Ippolito, 2021/03/09
- Re: How to call something when a command is not found?, Peng Yu, 2021/03/09
- Re: How to call something when a command is not found?, Eli Schwartz, 2021/03/09
- Re: How to call something when a command is not found?, Peng Yu, 2021/03/09
- Re: How to call something when a command is not found?, Lawrence Velázquez, 2021/03/09
- Re: How to call something when a command is not found?, Eli Schwartz, 2021/03/09
- Re: How to call something when a command is not found?, Marco Ippolito, 2021/03/09
- Re: How to call something when a command is not found?, Lawrence Velázquez, 2021/03/09