Patch-ID: bash32-032
[bash.git] / examples / loadables / truefalse.c
blobe77c74ca06d94a3afd9e6faa450bd823c99e1013
1 /* true and false builtins */
3 #include "bashtypes.h"
4 #include "shell.h"
5 #include "builtins.h"
7 true_builtin (list)
8 WORD_LIST *list;
10 return EXECUTION_SUCCESS;
13 false_builtin (list)
14 WORD_LIST *list;
16 return EXECUTION_FAILURE;
19 static char *true_doc[] = {
20 "Return a successful result.",
21 (char *)NULL
24 static char *false_doc[] = {
25 "Return an unsuccessful result.",
26 (char *)NULL
29 struct builtin true_struct = {
30 "true",
31 true_builtin,
32 BUILTIN_ENABLED,
33 true_doc,
34 "true",
38 struct builtin false_struct = {
39 "false",
40 false_builtin,
41 BUILTIN_ENABLED,
42 false_doc,
43 "false",