1 /* template - example template for loadable builtin */
3 /* See Makefile for compilation details. */
7 #if defined (HAVE_UNISTD_H)
16 #include "bashgetopt.h"
22 extern char *strerror ();
24 template_builtin (list
)
29 rval
= EXECUTION_SUCCESS
;
30 reset_internal_getopt ();
31 while ((opt
= internal_getopt (list
, "")) != -1)
45 char *template_doc
[] = {
48 "Longer description of builtin and usage.",
52 struct builtin template_struct
= {
53 "template", /* builtin name */
54 template_builtin
, /* function implementing the builtin */
55 BUILTIN_ENABLED
, /* initial flags for builtin */
56 template_doc
, /* array of long documentation strings. */
57 "template", /* usage synopsis; becomes short_doc */
58 0 /* reserved for internal use */