Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Directory not recognized as directory
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 02 November 2005 21:56, DervishD wrote:
> Looks like you're using "stat" from coreutils, and not builtin
> stat. Sorry, my fault,
No, it is my fault :)
Index: Src/Modules/stat.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/stat.c,v
retrieving revision 1.8
diff -u -p -r1.8 stat.c
- --- Src/Modules/stat.c 18 Feb 2005 13:57:27 -0000 1.8
+++ Src/Modules/stat.c 2 Nov 2005 19:23:28 -0000
@@ -532,8 +532,8 @@ bin_stat(char *name, char **args, Option
for (; OPT_ISSET(ops,'f') || *args; args++) {
char outbuf[PATH_MAX + 9]; /* "link " + link name + NULL */
int rval = OPT_ISSET(ops,'f') ? fstat(fd, &statbuf) :
- - OPT_ISSET(ops,'L') ? lstat(*args, &statbuf) :
- - stat(*args, &statbuf);
+ OPT_ISSET(ops,'L') ? lstat(unmeta(*args), &statbuf) :
+ stat(unmeta(*args), &statbuf);
if (rval) {
if (OPT_ISSET(ops,'f'))
sprintf(outbuf, "%d", fd);
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDaRJ5R6LMutpd94wRAil/AKCOj3hPEMftGiUOh9My8XaP51jZ+wCePR1D
nknu+geujFWCZbpAIjDwJII=
=uQya
-----END PGP SIGNATURE-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author