all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bugfix eshell/rm
@ 2011-03-11  8:04 Thierry Volpiatto
  2011-03-11  8:16 ` Glenn Morris
  0 siblings, 1 reply; 15+ messages in thread
From: Thierry Volpiatto @ 2011-03-11  8:04 UTC (permalink / raw)
  To: emacs-devel

Hi all,
`eshell-remove-entries' use a not bound 'verbose' variable, and fail.
To reproduce bug, try "rm -rf /some/directory" in eshell.
 

This patch fix it.
however there is maybe other calls to `eshell-remove-entries' to fix.

This is on emacs-23.3

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el
index 8f61270..0a79e80 100644
--- a/lisp/eshell/em-unix.el
+++ b/lisp/eshell/em-unix.el
@@ -194,7 +194,7 @@ Otherwise, Emacs will attempt to use rsh to invoke du on the remote machine."
       (Info-menu (car args))
       (setq args (cdr args)))))
 
-(defun eshell-remove-entries (path files &optional top-level)
+(defun eshell-remove-entries (path files &optional top-level verbose)
   "From PATH, remove all of the given FILES, perhaps interactively."
   (while files
     (if (string-match "\\`\\.\\.?\\'"
@@ -298,7 +298,7 @@ Remove (unlink) the FILE(s).")
 			 (y-or-n-p
 			  (format "rm: descend into directory `%s'? "
 				  entry)))
-		     (eshell-remove-entries nil (list entry) t))
+		     (eshell-remove-entries nil (list entry) t nil))
 	       (eshell-error (format "rm: %s: is a directory\n" entry)))
 	   (eshell-remove-entries nil (list entry) t)))))
      (setq args (cdr args)))
--8<---------------cut here---------------end--------------->8---

-- 
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 




^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-03-12 22:43 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-11  8:04 bugfix eshell/rm Thierry Volpiatto
2011-03-11  8:16 ` Glenn Morris
2011-03-11  9:08   ` Thierry Volpiatto
2011-03-11 10:18     ` Eli Zaretskii
2011-03-11 12:17       ` Thierry Volpiatto
2011-03-11 12:23         ` Eli Zaretskii
2011-03-11 12:50           ` Thierry Volpiatto
2011-03-11 15:59             ` Eli Zaretskii
2011-03-11 18:03               ` Thierry Volpiatto
2011-03-12 18:39     ` Glenn Morris
2011-03-12 20:12       ` bug and dev mailing lists [was: bugfix eshell/rm] Drew Adams
2011-03-12 20:25         ` Eli Zaretskii
2011-03-12 22:43           ` Drew Adams
2011-03-12  8:30   ` bugfix eshell/rm Thierry Volpiatto
2011-03-12  8:45     ` Thierry Volpiatto

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.