From 07c8fbe59632be71e4ad5bfafbf6aa4884cd04c4 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 29 Sep 2016 11:00:44 +0100 Subject: 34943: Fixes for "command" with multiple options. These need to combine properly, and alos "command -p" with either -v or -V needs to search for builtins and then using the default system path. --- Src/subst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/subst.c') diff --git a/Src/subst.c b/Src/subst.c index 92fde4598..ecd74879f 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -627,7 +627,7 @@ equalsubstr(char *str, int assign, int nomatch) cmdstr = dupstrpfx(str, pp-str); untokenize(cmdstr); remnulargs(cmdstr); - if (!(cnam = findcmd(cmdstr, 1))) { + if (!(cnam = findcmd(cmdstr, 1, 0))) { if (nomatch) zerr("%s not found", cmdstr); return NULL; -- cgit 1.4.1