[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dired-move-to-filename-regexp does not match small files with BSD 'ls -l
From: |
Richard Lewis |
Subject: |
dired-move-to-filename-regexp does not match small files with BSD 'ls -lh' |
Date: |
Tue, 12 Apr 2005 11:00:28 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
On FreeBSD, ls -lh marks the size of small files with a B:
$ ls -lh README
-rw-r--r-- 1 richard maths 538B Jan 17 2001 README
but dired does not recognise this as a valid file size.
[I'm using GNU Emacs 22.0.50.2 (i386-unknown-freebsd5.4, X toolkit, Xaw3d scroll
bars) of 2005-04-06]
--- /homedir/richard/.apps/share/emacs/22.0.50/lisp/dired.el~ Tue Apr 5
00:58:11 2005
+++ /homedir/richard/.apps/share/emacs/22.0.50/lisp/dired.el Tue Apr 12
11:31:56 2005
@@ -1831,7 +1831,7 @@
;; The ".*" below finds the last match if there are multiple matches.
;; This avoids recognizing `jservice 10 1024' as a date in the line:
;; drwxr-xr-x 3 jservice 10 1024 Jul 2 1997 esg-host
- (concat ".*[0-9][kKMGTPEZY]?" s
+ (concat ".*[0-9][BkKMGTPEZY]?" s
"\\(" western "\\|" western-comma "\\|" japanese "\\|" iso "\\)"
s "+"))
"Regular expression to match up to the file name in a directory listing.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- dired-move-to-filename-regexp does not match small files with BSD 'ls -lh',
Richard Lewis <=