From unknown Mon Aug 18 00:05:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5548 <5548@debbugs.gnu.org> To: bug#5548 <5548@debbugs.gnu.org> Subject: Status: eshell has an odd idea of file permissions Reply-To: bug#5548 <5548@debbugs.gnu.org> Date: Mon, 18 Aug 2025 07:05:58 +0000 retitle 5548 eshell has an odd idea of file permissions reassign 5548 emacs submitter 5548 Glenn Morris severity 5548 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 08 18:54:54 2010 Received: (at submit) by debbugs.gnu.org; 8 Feb 2010 23:54:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NedRN-00045i-Qe for submit@debbugs.gnu.org; Mon, 08 Feb 2010 18:54:53 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NedRM-00045W-4G for submit@debbugs.gnu.org; Mon, 08 Feb 2010 18:54:52 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NedRI-0001YW-3M; Mon, 08 Feb 2010 18:54:48 -0500 To: submit@debbugs.gnu.org Subject: eshell has an odd idea of file permissions From: Glenn Morris X-Spook: plutonium NASA Glock fraud number key SCUD missile CID X-Ran: ,h0;UQ=6uq7*\uYmU2=[ZIi~W]J0N`ml%)K5q}= User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) 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. Firstly, it does different things according to whether or not a file's owner attribute is reported in numeric or string form. Secondly, if the attribute is a string and the file is not remote (?), it adds 6 to the index position to be checked, meaning it checks the "other" file permission index. For example, to test if a file is readable, it ends up testing the 1+6=7 th (from 0) character in "-rw-r--r--". From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 08 20:59:12 2010 Received: (at 5548) by debbugs.gnu.org; 9 Feb 2010 01:59:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NefNg-0005Ht-AB for submit@debbugs.gnu.org; Mon, 08 Feb 2010 20:59:12 -0500 Received: from pantheon-po34.its.yale.edu ([130.132.50.80]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NefNQ-0005HQ-6e for 5548@debbugs.gnu.org; Mon, 08 Feb 2010 20:59:05 -0500 Received: from furry (bb116-15-9-83.singnet.com.sg [116.15.9.83]) (authenticated bits=0) by pantheon-po34.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o191wnhj020674 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 8 Feb 2010 20:58:51 -0500 Received: by furry (Postfix, from userid 1000) id 7CFDAC05D; Mon, 8 Feb 2010 20:58:48 -0500 (EST) From: Chong Yidong To: Glenn Morris Subject: Re: bug#5548: eshell has an odd idea of file permissions References: Date: Mon, 08 Feb 2010 20:58:48 -0500 In-Reply-To: (Glenn Morris's message of "Mon, 08 Feb 2010 18:54:47 -0500") Message-ID: <87pr4fqief.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5548 Cc: 5548@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Glenn Morris 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 08 21:00:00 2010 Received: (at control) by debbugs.gnu.org; 9 Feb 2010 02:00:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NefOS-0005IQ-5B for submit@debbugs.gnu.org; Mon, 08 Feb 2010 21:00:00 -0500 Received: from pantheon-po34.its.yale.edu ([130.132.50.80]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NefOQ-0005IH-Gh for control@debbugs.gnu.org; Mon, 08 Feb 2010 20:59:58 -0500 Received: from furry (bb116-15-9-83.singnet.com.sg [116.15.9.83]) (authenticated bits=0) by pantheon-po34.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o191xqr8020846 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 8 Feb 2010 20:59:54 -0500 Received: by furry (Postfix, from userid 1000) id C2ABEC05D; Mon, 8 Feb 2010 20:59:51 -0500 (EST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 5548 Date: Mon, 08 Feb 2010 20:59:51 -0500 Message-ID: <87ljf3qico.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) close 5548 thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 09 00:17:14 2010 Received: (at 5548) by debbugs.gnu.org; 9 Feb 2010 05:17:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NeiTK-0007ll-J4 for submit@debbugs.gnu.org; Tue, 09 Feb 2010 00:17:14 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NeiTI-0007lg-S9 for 5548@debbugs.gnu.org; Tue, 09 Feb 2010 00:17:13 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NeiTE-0002Ym-40; Tue, 09 Feb 2010 00:17:08 -0500 To: Chong Yidong Subject: Re: bug#5548: eshell has an odd idea of file permissions References: <87pr4fqief.fsf@stupidchicken.com> From: Glenn Morris X-Spook: Legion of Doom broadside SWAT CDC Tony Blair Albanian War X-Ran: @"y'j)kE.Q.^+erpA\qB9&Ye#ylmR1GXt$wEp7v34)exK],ZLg%UWAhH`|H^~eT,~D!yf( X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 09 Feb 2010 00:17:07 -0500 In-Reply-To: <87pr4fqief.fsf@stupidchicken.com> (Chong Yidong's message of "Mon\, 08 Feb 2010 20\:58\:48 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: 5548 Cc: 5548@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) Great; thank you. From unknown Mon Aug 18 00:05:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 09 Mar 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator