On Wed, Apr 18, 2001 at 10:18:55PM +0200, I wrote:
> Here is a simple patch that should fix it:
[buggy patch]

Oops, this one should be better, sorry:

--- ls.c~       Wed Apr 18 21:27:52 2001
+++ ls.c        Thu Apr 19 20:46:28 2001
@@ -902,7 +902,12 @@
   clear_files ();
 
   if (i < argc)
-    dir_defaulted = 0;
+    {
+      dir_defaulted = 0;
+      if (argc - i <= 1)
+       print_dir_name = 0;
+    }
+
   for (; i < argc; i++)
     {
       gobble_file (argv[i], unknown, 1, "");
@@ -929,8 +934,6 @@
       if (pending_dirs)
        DIRED_PUTCHAR ('\n');
     }
-  else if (pending_dirs && pending_dirs->next == 0)
-    print_dir_name = 0;
 
   while (pending_dirs)
     {


cheers,
Stéphane

_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils

Reply via email to