]> diplodocus.org Git - nmh/commitdiff
WhatNow needs to set invo_name so that switches are interpreted properly.
authorDavid Levine <levinedl@acm.org>
Mon, 27 Jan 2014 18:53:03 +0000 (12:53 -0600)
committerDavid Levine <levinedl@acm.org>
Mon, 27 Jan 2014 18:53:03 +0000 (12:53 -0600)
uip/whatnowsbr.c

index 4a3c2647e9a2974ebef9e085c05caf5a7182194d..58c3cd478b70c49511dd62a01d7cd9627171ba16 100644 (file)
@@ -129,6 +129,8 @@ WhatNow (int argc, char **argv)
     char       *l;                     /* set on -l to alist  command */
     int                n;                      /* set on -n to alist command */
 
+    invo_name = r1bindex (argv[0], '/');
+
     arguments = getarguments (invo_name, argc, argv, 1);
     argp = arguments;