Be more rigorous with the exit codes set by the parser and builtins

darcs-hash:20061009012102-ac50b-4f28c43dd1ccdcc04d1620a6da05218a99fd7337.gz
This commit is contained in:
axel
2006-10-09 11:21:02 +10:00
parent 7a8b468165
commit a074cd62bc
5 changed files with 84 additions and 49 deletions

15
proc.h
View File

@@ -24,6 +24,21 @@
*/
#define STATUS_UNKNOWN_COMMAND 127
/**
The status code use when a wildcard had no matches
*/
#define STATUS_UNMATCHED_WILDCARD 126
/**
The status code use when an unknown error occured during execution of a command
*/
#define STATUS_EXEC_FAIL 125
/**
The status code use for erroneous argument combinations in a builtin
*/
#define STATUS_BUILTIN_ERROR 1
/**
Types of processes
*/