1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00

don't always ignore backslashes in paths when testing file type (10912)

This commit is contained in:
Sven Wischnowsky 2000-04-25 11:17:24 +00:00
parent 2f90974c38
commit f5dcbf9f19
2 changed files with 6 additions and 0 deletions

@ -1,5 +1,8 @@
2000-04-25 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
* 10912: Src/Zle/compresult.c: don't always ignore backslashes in
paths when testing file type
* 10910: Completion/Base/_tilde, Completion/Core/_all_labels,
Completion/Core/_requested: small fix for _requested to be able to
use _all_labels from within it

@ -705,6 +705,9 @@ ztat(char *nam, struct stat *buf, int ls)
{
char b[PATH_MAX], *p;
if (!(ls ? lstat(nam, buf) : stat(nam, buf)))
return 0;
for (p = b; p < b + sizeof(b) - 1 && *nam; nam++)
if (*nam == '\\' && nam[1])
*p++ = *++nam;