X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/23f2b007ecac94848616420b27f0819ea559507e..4b2ba897bbf4c545b33e42bd1e06bee26e665dc4:/uip/install-mh.c diff --git a/uip/install-mh.c b/uip/install-mh.c index 627c48e2..a79793f5 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -180,8 +180,8 @@ query: /* * Add some initial elements to the profile/context list */ - m_defs = (struct node *) mh_xmalloc (sizeof *np); - np = m_defs; + NEW(np); + m_defs = np; np->n_name = getcpy ("Path"); np->n_field = getcpy (pathname); np->n_context = 0; @@ -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; }