Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix status code when bad command name is entered #3616
This commit fixes a bug which causes that
fish -c ')'; echo $status
("Illegal command name" error) returns 0. This is inconsistent with
fish -c 'invalid-command'; echo $status
("Unknown command" error) which correctly returns 127.
A new status code,
is introduced - which is returned whenever the 'Illegal command name *'
This commit also adds a test which checks if valid commands return 0,
What do you think? Should
And please check the test. I'm not very experienced with C++ .
Thanks for the great contribution. The tests look outstanding!
I like the introduction of