1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 16:50:58 +01:00

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.
This commit is contained in:
Peter Stephenson 2016-09-29 11:00:44 +01:00
parent d44d23c757
commit 07c8fbe596
5 changed files with 143 additions and 39 deletions

View file

@ -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;