Is there a way to get this example catchall function to be called whenever any command starts with the / character in an interactive shell (instead of searching in $PATH and executing something else, etc)?
For example, I would want
/arg1 arg2 arg3
to call
function catchall() {
/* $1 == "arg1"
$2 == "arg2"
$3 == "arg3" */
...
}
/is an example. Thecatchallfunction is also only an example. – Aaron Esau May 31 '22 at 02:47catchallto run instead of the typed command? or along? (before or after?). – Kamil Maciorowski May 31 '22 at 02:48