]> diplodocus.org Git - nmh/blobdiff - uip/install-mh.c
Oops, should have offset file in showbuildenv rather than cat.
[nmh] / uip / install-mh.c
index 627c48e2d603eaa5207e6e9820252f01e8f5603a..ea4e876b752527de0bf6dc59d69cbc1bd545a0b1 100644 (file)
@@ -180,9 +180,9 @@ query:
     /*
      * Add some initial elements to the profile/context list
      */
-    m_defs = (struct node *) mh_xmalloc (sizeof *np);
-    np = m_defs;
-    np->n_name = getcpy ("Path");
+    NEW(np);
+    m_defs = np;
+    np->n_name = mh_xstrdup("Path");
     np->n_field = getcpy (pathname);
     np->n_context = 0;
     np->n_next = NULL;
@@ -219,6 +219,14 @@ query:
            fprintf (out, "%s: %s\n", np->n_name, np->n_field);
     }
     fclose (out);
+
+    puts ("\nPlease see the nmh(7) man page for an introduction to nmh.\n");
+    print_intro (stdout, FALSE);
+
+    /* Initialize the saved nmh version.  The Path profile entry was added
+       above, that's all this needs. */
+    (void) nmh_version_changed (0);
+
     done (0);
     return 1;
 }