3 * showfile.c -- invoke the `lproc' command
12 showfile (char **arg, char *file)
18 context_save(); /* save the context file */
22 * If you have your lproc listed as "mhl",
23 * then really invoked the mhlproc instead
24 * (which is usually mhl anyway).
26 if (!strcmp (r1bindex (lproc, '/'), "mhl"))
29 switch (pid = vfork()) {
32 advise ("fork", "unable to");
38 vec[vecp++] = r1bindex (lproc, '/');
48 if (!strcmp (vec[0], "show"))
49 vec[vecp++] = "-file";
55 fprintf (stderr, "unable to exec ");
61 return (pidwait (pid, -1) & 0377 ? 1 : 0);
64 return 1; /* NOT REACHED */