Skip to content
Discussion options

You must be logged in to vote

... I thought that this was what the CommandNotFound: field/function was supposed to do?... I mean, it's the built-in catch-all function for all invalid commands?

Ah, I wanted to test it out before posting here, but it seems that I usually have a command defined by default. When that is the case, any non-recognised command will automatically use the default. That's actually neat, but it won't help you much if you have a default command, that is — if not, you should be able to catch it with the function that CommandNotFound points to.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dearchap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants