support the full range of filename expansion provided by the shell.
;;; -*-Scheme-*-
;;;
-;;; $Id: dired.scm,v 1.164 1996/09/06 17:10:57 cph Exp $
+;;; $Id: dired.scm,v 1.165 1996/10/02 17:00:10 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-96 Massachusetts Institute of Technology
;;;
(define (read-directory pathname file-list switches mark)
(if (eq? 'ALL file-list)
(insert-directory! (let ((dir (pathname-as-directory pathname)))
- (if (and (not (pathname-wild? pathname))
+ (if (and (not (dired-pathname-wild? pathname))
(not (pathname=? pathname dir))
(file-directory? pathname))
dir
pathname))
switches mark
- (if (pathname-wild? pathname)
+ (if (dired-pathname-wild? pathname)
'WILDCARD
'DIRECTORY))
(let ((mark (mark-left-inserting-copy mark)))
;;; -*-Scheme-*-
;;;
-;;; $Id: dos.scm,v 1.36 1996/05/04 17:38:40 cph Exp $
+;;; $Id: dos.scm,v 1.37 1996/10/02 17:00:28 cph Exp $
;;;
;;; Copyright (c) 1992-96 Massachusetts Institute of Technology
;;;
" "
(file-time->ls-string (file-attributes/modification-time attr) now)
" "
- name))
\ No newline at end of file
+ name))
+
+(define dired-pathname-wild?
+ pathname-wild?)
\ No newline at end of file
;;; -*-Scheme-*-
;;;
-;;; $Id: os2.scm,v 1.32 1996/05/12 07:14:12 cph Exp $
+;;; $Id: os2.scm,v 1.33 1996/10/02 17:00:22 cph Exp $
;;;
;;; Copyright (c) 1994-96 Massachusetts Institute of Technology
;;;
(file-time->ls-string (file-attributes/modification-time attr) now)
" "
name))
-
+\f
(define (os2/read-dired-files file all-files?)
(let loop
((pathnames
(if attr
(cons (cons (file-namestring (car pathnames)) attr) result)
result))))))
+
+(define dired-pathname-wild?
+ pathname-wild?)
\f
;;;; Compressed Files
;;; -*-Scheme-*-
;;;
-;;; $Id: unix.scm,v 1.71 1996/05/12 07:14:21 cph Exp $
+;;; $Id: unix.scm,v 1.72 1996/10/02 17:00:35 cph Exp $
;;;
;;; Copyright (c) 1989-96 Massachusetts Institute of Technology
;;;
(loop (fix:+ space 1)))
(list (substring switches start end))))
'()))))
+
+(define (dired-pathname-wild? pathname)
+ (let ((namestring (file-namestring pathname)))
+ (or (string-find-next-char namestring #\*)
+ (string-find-next-char namestring #\?)
+ (string-find-next-char namestring #\[))))
\f
;;;; Subprocess/Shell Support