🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87428

dired consfused by dirname ending in colon

#87428
From: lenst
Date: Sat, 24 Sep 1994 05:09
38 lines
1797 bytes
In GNU Emacs 19.27.1 (sparc-sun-solaris2.3) of Sat Sep 17 1994 on lysita

Dired can still be consfused by a name ending in colon, if it is the
name of a directory.

To reproduce
Unix commands:
 mkdir foo foo/bar:
 emacs -q  
In emacs type: C-x d foo RET
Dired reports 2 subdirectories, this is wrong.

The following patch fixes the problem:

Sat Sep 24 06:49:42 1994  Lennart Staflin  <lenst@lysator.liu.se>

	* dired.el (dired-re-perms): Accept directories and symbolic links
	also, not only plain files.

*** dired.el.orig	Sat Sep 24 06:50:39 1994
--- dired.el	Sat Sep 24 06:49:39 1994
***************
*** 185,191 ****
  	       "-[-r][-w].[-r][-w][xs][-r][-w]."
  	       "-[-r][-w].[-r][-w].[-r][-w][xst]")
  	     "\\|"))
! (defvar dired-re-perms "-[-r][-w].[-r][-w].[-r][-w].")
  (defvar dired-re-dot "^.* \\.\\.?$")
  
  (defvar dired-subdir-alist nil
--- 185,191 ----
  	       "-[-r][-w].[-r][-w][xs][-r][-w]."
  	       "-[-r][-w].[-r][-w].[-r][-w][xst]")
  	     "\\|"))
! (defvar dired-re-perms "[-dl][-r][-w].[-r][-w].[-r][-w].")
  (defvar dired-re-dot "^.* \\.\\.?$")
  
  (defvar dired-subdir-alist nil
Technical Details
Message-ID: <199409240505.HAA02662@lysita>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!lysator.liu.se!lenst

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,e040e0cc0256b137,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-24 02:58:49 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!lysator.liu.se!lenst
From: lenst@lysator.liu.se
Newsgroups: gnu.emacs.bug
Subject: dired consfused by dirname ending in colon
Date: 24 Sep 1994 01:09:45 -0400
Organization: GNUs Not Usenet
Lines: 38
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <199409240505.HAA02662@lysita>