On Fri, Mar 25, 2011 at 04:20:19PM +0300, Alexey Gladkov wrote: [...] > I thing this utility is more script-friendly and more extensible. [...] > #define RETURN_BASE 100 > #define GETMODE 10 > #define GKBMODE 20 > #define GKBMETA 30 Multi-value exit status is not quite script-friendly, especially for values greater than 128, because exit codes greater than 128 are used by the shell to indicate that a program died due to a fatal signal. -- ldv