1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-17 02:51:01 +02:00

34091: typo with "whence -s" expansions

This commit is contained in:
Peter Stephenson 2015-01-04 19:05:39 +00:00
parent aa622e0801
commit f9cba834cd
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,7 @@
2015-01-04 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 34091: Src/utils.c: typo with "whence -s" expansions.
* users/19682: Doc/Zsh/builtins.yo: document recommended use of
whence.

View file

@ -795,12 +795,12 @@ xsymlinks(char *s, int full)
}
if (*xbuf3 == '/') {
strcpy(xbuf, "");
if (xsymlinks(xbuf3 + 1, 0) < 0)
if (xsymlinks(xbuf3 + 1, 1) < 0)
ret = -1;
else
xbuflen = strlen(xbuf);
} else
if (xsymlinks(xbuf3, 0) < 0)
if (xsymlinks(xbuf3, 1) < 0)
ret = -1;
else
xbuflen = strlen(xbuf);