Subject: bug#5548: eshell has an odd idea of file permissions

From: Chong Yidong <[email-masked]>
Date: Mon, 08 Feb 2010 20:58:48 -0500

Glenn Morris <[email-masked]> writes:

> Current trunk on GNU/Linux:
>
> mkdir foo
> cd foo
> touch 1 2 3 4
> chmod 644 1               # writable by owner
> chmod 446 2               # writable by other
> chmod 744 3               # executable by owner
> chmod 447 4               # executable by other
>
> emacs -Q -f eshell
> eshell> ls
>
> "1" appears in eshell-ls-readonly face, "2" in default face.
> "3" appears in readonly face, "4" in eshell-ls-executable face.
>
> This seems to be due to eshell-ls-applicable, which looks odd to me.

I've re-written eshell-ls-applicable; it should work properly now.