about summary refs log tree commit diff
path: root/Src/subst.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-09-29 11:00:44 +0100
committerPeter Stephenson <pws@zsh.org>2016-09-29 11:01:00 +0100
commit07c8fbe59632be71e4ad5bfafbf6aa4884cd04c4 (patch)
treec8a34538da3a44dd49ae0d6d1f82539e56e5fc41 /Src/subst.c
parentd44d23c7578285375f4ded759f7d8412320c3319 (diff)
downloadzsh-07c8fbe59632be71e4ad5bfafbf6aa4884cd04c4.tar.gz
zsh-07c8fbe59632be71e4ad5bfafbf6aa4884cd04c4.tar.xz
zsh-07c8fbe59632be71e4ad5bfafbf6aa4884cd04c4.zip
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.
Diffstat (limited to 'Src/subst.c')
-rw-r--r--Src/subst.c2
1 files changed, 1 insertions, 1 deletions
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;