aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/find-dired.el
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1994-12-15 12:16:29 +0000
committerRichard M. Stallman <[email protected]>1994-12-15 12:16:29 +0000
commitefa2bb9cc8a8baee65929b830c55423d87cb1bcb (patch)
treecbd3d64e8ebadf00ca10970f7d8b0e3836f5e919 /lisp/find-dired.el
parenta352a815c4db262fea19a6bf9be60a1bf40905f6 (diff)
(find-grep-options): Use -q on non-BSD systems.
(find-ls-option): Don't ask for inode numbers.
Diffstat (limited to 'lisp/find-dired.el')
-rw-r--r--lisp/find-dired.el17
1 files changed, 8 insertions, 9 deletions
diff --git a/lisp/find-dired.el b/lisp/find-dired.el
index 53f62d71ed..71958d8af6 100644
--- a/lisp/find-dired.el
+++ b/lisp/find-dired.el
@@ -7,8 +7,8 @@
;; Maintainer: Sebastian Kremer <[email protected]>
;; Keywords: unix
-(defconst find-dired-version (substring "$Revision: 1.16 $" 11 -2)
- "$Id: find-dired.el,v 1.16 1994/05/03 23:39:55 kwzh Exp rms $")
+(defconst find-dired-version (substring "$Revision: 1.17 $" 11 -2)
+ "$Id: find-dired.el,v 1.17 1994/11/19 14:03:23 rms Exp rms $")
;;; This program is free software; you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
@@ -33,7 +33,7 @@
;; find-dired|Roland McGrath, Sebastian Kremer
;; |Run a `find' command and dired the output
-;; |$Date: 1994/05/03 23:39:55 $|$Revision: 1.16 $|
+;; |$Date: 1994/11/19 14:03:23 $|$Revision: 1.17 $|
;; INSTALLATION ======================================================
@@ -60,15 +60,14 @@
;;;###autoload
(defvar find-ls-option (if (eq system-type 'berkeley-unix) "-ls"
- "-exec ls -ldi {} \\;")
+ "-exec ls -ld {} \\;")
"*Option to `find' to produce an `ls -l'-type listing.")
;;;###autoload
-(defvar find-grep-options (if (eq system-type 'berkeley-unix) "-s" "-l")
+(defvar find-grep-options (if (eq system-type 'berkeley-unix) "-s" "-q")
"*Option to grep to be as silent as possible.
-On Berkeley systems, this is `-s', for others it seems impossible to
-suppress all output, so `-l' is used to print nothing more than the
-file name.")
+On Berkeley systems, this is `-s'; on Posix, and with GNU grep, `-q' does it.
+On other systems, the closest you can come is to use `-l'.")
(defvar find-args nil
"Last arguments given to `find' by \\[find-dired].")
@@ -157,7 +156,7 @@ The command run (after changing into DIR) is
find . -exec grep -s ARG {} \\\; -ls
Thus ARG can also contain additional grep options."
- (interactive "DFind-grep (directory): \nsFind-grep (grep args): ")
+ (interactive "DFind-grep (directory): \nsFind-grep (grep regexp): ")
;; find -exec doesn't allow shell i/o redirections in the command,
;; or we could use `grep -l >/dev/null'
(find-dired dir