From: David Levine Date: Mon, 27 Jan 2014 18:53:03 +0000 (-0600) Subject: WhatNow needs to set invo_name so that switches are interpreted properly. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/254fa0a63c7d0b91db380c306b9a68b5091a7f0d?ds=sidebyside;hp=--cc WhatNow needs to set invo_name so that switches are interpreted properly. --- 254fa0a63c7d0b91db380c306b9a68b5091a7f0d diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 4a3c2647..58c3cd47 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -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;