Radomír Bosák 254762f30f Fix status code when bad command name is entered
This commit fixes a bug which causes that

   fish -c ')'; echo $status

("Illegal command name" error) returns 0. This is inconsistent with
e.g. when trying to run non-existent command:

   fish -c 'invalid-command'; echo $status

("Unknown command" error) which correctly returns 127.

A new status code,

    STATUS_ILLEGAL_CMD = 123

is introduced - which is returned whenever the 'Illegal command name *'
message is printed.

This commit also adds a test which checks if valid commands return 0,
while commands with illegal name return status code 123.

Fixes #3606.
2016-12-03 13:14:40 -08:00
..
2016-10-30 21:25:21 -07:00
2014-09-07 17:35:19 +01:00
2016-06-23 18:23:10 +02:00
2014-09-03 14:43:27 +01:00
2015-08-17 20:27:13 +08:00
2015-09-11 11:33:04 +02:00
2016-04-23 12:26:57 -07:00
2015-03-18 16:22:29 -04:00
2014-09-29 13:39:35 -07:00
2016-07-16 20:22:41 -07:00
2016-06-26 11:36:31 +02:00
2016-04-26 15:21:15 +02:00
2016-05-17 14:52:55 -07:00
2015-02-06 07:48:47 +01:00
2016-07-16 20:22:41 -07:00
2016-08-24 22:56:19 -07:00
2014-09-03 14:43:27 +01:00
2014-09-03 14:43:27 +01:00
2016-12-03 16:36:06 +08:00
2016-07-16 20:22:41 -07:00
2016-07-16 20:22:41 -07:00
2015-11-14 13:15:30 +01:00
2015-09-11 11:33:04 +02:00
2014-09-03 14:43:25 +01:00
2014-09-21 21:10:07 -07:00
2014-09-03 14:43:27 +01:00
2014-09-03 14:43:27 +01:00
2014-09-29 13:39:35 -07:00
2016-07-16 20:22:41 -07:00
2016-07-16 20:22:41 -07:00
2014-09-03 14:43:27 +01:00
2014-09-03 14:43:24 +01:00
2014-09-03 14:43:24 +01:00