[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fileutils-4.0.43 - ls] 'ls a b' when a doesn't exist and isdir(b)
From: |
Stephane CHAZELAS |
Subject: |
Re: [fileutils-4.0.43 - ls] 'ls a b' when a doesn't exist and isdir(b) |
Date: |
Thu, 19 Apr 2001 20:50:04 +0200 |
User-agent: |
Mutt/1.3.14i |
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