Cleanup and improve the exit status numbers and the messages generated on error as well as make sure that keyboard shortcuts don't change the status

darcs-hash:20080108193145-75c98-56c8aa2dd081af643d206820aa36bf3b6e49e0f2.gz
This commit is contained in:
liljencrantz
2008-01-09 05:31:45 +10:00
parent da4a4bcc18
commit 71c2cde390
7 changed files with 51 additions and 16 deletions

9
proc.h
View File

@@ -25,15 +25,20 @@
#define STATUS_UNKNOWN_COMMAND 127
/**
The status code use when a wildcard had no matches
The status code use when an unknown error occured during execution of a command
*/
#define STATUS_UNMATCHED_WILDCARD 126
#define STATUS_NOT_EXECUTABLE 126
/**
The status code use when an unknown error occured during execution of a command
*/
#define STATUS_EXEC_FAIL 125
/**
The status code use when a wildcard had no matches
*/
#define STATUS_UNMATCHED_WILDCARD 124
/**
The status code used for normal exit in a builtin
*/