🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #934

dired on SunOS 4.1.3

#934
From: Toshiaki Shingu
Date: Fri, 08 Jan 1993 05:08
31 lines
1459 bytes
VERSION:	18.58.1
MACINE/OS:	SparcStation2 / SunOS 4.1.3

Dired cannot get contents of symbolic-linked directory.
For example, "C-x C-f /bin" shows as follows.

  lrwxrwxrwx  1 root            7 Oct 14  1990 bin -> usr/bin

This is solved getting directory contents by "ls -al <directory>/."
insted of "ls -al <directory>".

Here is patch.

--- dired.el~	Wed Apr 15 21:36:51 1992
+++ dired.el	Fri Jan  8 14:05:17 1993
@@ -37,11 +37,11 @@
       (setq dirname (expand-file-name dirname))
       (if (file-directory-p dirname)
 	  (call-process "ls" nil buffer nil
-			dired-listing-switches dirname)
+			dired-listing-switches (concat dirname "/."))
 	(let ((default-directory (file-name-directory dirname)))
 	  (call-process shell-file-name nil buffer nil
 			"-c" (concat "ls " dired-listing-switches " "
-				     (file-name-nondirectory dirname)))))
+				     (file-name-nondirectory dirname) "/."))))
       (goto-char (point-min))
       (while (not (eobp))
 	(insert "  ")
--
Toshiaki SHINGU
Technical Details
Message-ID: <SHINGU.93Jan8140817@casp12.cpr.canon.co.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cpr.CAnon.co.JP!shingu

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cpr.CAnon.co.JP!shingu
From: shingu@cpr.CAnon.co.JP (Toshiaki Shingu)
Subject: dired on SunOS 4.1.3
Message-ID: <SHINGU.93Jan8140817@casp12.cpr.canon.co.jp>
Sender: gnulists@ai.mit.edu
Organization: Canon Inc., Tokyo, Japan
Distribution: gnu
Date: Fri, 8 Jan 1993 05:08:17 GMT
Approved: bug-gnu-emacs@prep.ai.mit.edu
Lines: 32