🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87442

Re: dired consfused by dirname ending in colon

#87442
From: Hallvard B Furuseth
Date: Sun, 25 Sep 1994 21:38
45 lines
2114 bytes
In article <199409240505.HAA02662@lysita> lenst@lysator.liu.se writes:
> 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.

Also if it is another kind of non-regular file.

> To reproduce
> Unix commands (on sun4):
	mkdir foo
	mknod foo/bar: p
>  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 all filetypes, 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,192 ----
  	       "-[-r][-w].[-r][-w][xs][-r][-w]."
  	       "-[-r][-w].[-r][-w].[-r][-w][xst]")
  	     "\\|"))
! ;; Are there other filetypes?  Maybe just `a-z' is better than `bcdlps'.
! (defvar dired-re-perms "[-bcdlps][-r][-w].[-r][-w].[-r][-w].")
  (defvar dired-re-dot "^.* \\.\\.?$")
  
  (defvar dired-subdir-alist nil
--
Hallvard
Technical Details
Message-ID: <HBF.94Sep25223222@durin.uio.no>
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!usit.uio.NO!h.b.furuseth
References: <199409240505.HAA02662@lysita>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,e040e0cc0256b137
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-25 14:42:43 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!usit.uio.NO!h.b.furuseth
From: h.b.furuseth@usit.uio.NO (Hallvard B Furuseth)
Newsgroups: gnu.emacs.bug
Subject: Re: dired consfused by dirname ending in colon
Date: 25 Sep 1994 17:38:07 -0400
Organization: University of Oslo, Norway
Lines: 45
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <HBF.94Sep25223222@durin.uio.no>
References: <199409240505.HAA02662@lysita>