* lisp/dired-aux.el (dired-do-chxxx): Use `eq' to detect empty input.
authorJuri Linkov <juri@jurta.org>
Thu, 13 Sep 2012 23:42:39 +0000 (02:42 +0300)
committerJuri Linkov <juri@jurta.org>
Thu, 13 Sep 2012 23:42:39 +0000 (02:42 +0300)
Fixes: debbugs:12399

lisp/ChangeLog
lisp/dired-aux.el

index c5c0c47..1503935 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-13  Juri Linkov  <juri@jurta.org>
+
+       * dired-aux.el (dired-do-chxxx): Use `eq' to detect empty input.
+       (Bug#12399)
+
 2012-09-13  Glenn Morris  <rgm@gnu.org>
 
        * calc/calc.el (math-compose-expr):
index 1f8e806..b42df95 100644 (file)
@@ -244,7 +244,10 @@ List has a form of (file-name full-file-name (attribute-list))."
                             (function dired-check-process)
                             (append
                              (list operation program)
-                             (unless (string-equal new-attribute "")
+                             (unless (or (string-equal new-attribute "")
+                                         ;; Use `eq' instead of `equal'
+                                         ;; to detect empty input (bug#12399).
+                                         (eq new-attribute default))
                                (if (eq op-symbol 'touch)
                                    (list "-t" new-attribute)
                                  (list new-attribute)))