bug-bash
[Top][All Lists]
Advanced

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

command_not_found_handle and sourced script


From: Dominique Ramaekers
Subject: command_not_found_handle and sourced script
Date: Mon, 26 Dec 2016 19:42:23 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Hi,

I have a philosophical question regarding the function of the command_not_found_handle...

As I understand it, the command_not_found_handle is not triggered on an unknown command in a shell script, run normally.

Dough, it is triggered on an unknown command in a sourced script.

Is there a philosophy behind that?

To my opinion, a sourced script (once debuged) shouldn't contain unknown commands. So the command_not_found_handle is not necessary.

Greetings,

Dominique.



reply via email to

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