Imported from ../bash-4.0-rc1.tar.gz.
[platform/upstream/bash.git] / examples / loadables / hello.c
index f4b4a8e..bff6e76 100644 (file)
@@ -31,6 +31,7 @@
 
    A builtin command returns EXECUTION_SUCCESS for success and
    EXECUTION_FAILURE to indicate failure. */
+int
 hello_builtin (list)
      WORD_LIST *list;
 {
@@ -40,8 +41,11 @@ hello_builtin (list)
 }
 
 /* An array of strings forming the `long' documentation for a builtin xxx,
-   which is printed by `help xxx'.  It must end with a NULL. */
+   which is printed by `help xxx'.  It must end with a NULL.  By convention,
+   the first line is a short description. */
 char *hello_doc[] = {
+       "Sample builtin.",
+       "",
        "this is the long doc for the sample hello builtin",
        (char *)NULL
 };