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" */
...
}