delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/10/16/08:04:05

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Sat, 16 Oct 2004 13:59:31 +0200
From: "Eli Zaretskii" <eliz AT gnu DOT org>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp AT delorie DOT com
Message-ID: <01c4b377$Blat.v2.2.2$bd9427e0@zahav.net.il>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2
In-reply-to: <EsSbd.30793$QJ3.6857@newssvr21.news.prodigy.com>
(one2001boy AT yahoo DOT com)
Subject: Re: latest ls.exe version in XP problem
References: <6jKbd.13476$nj DOT 4016 AT newssvr13 DOT news DOT prodigy DOT com> <416fec3d AT news DOT upm DOT es> <EsSbd.30793$QJ3 DOT 6857 AT newssvr21 DOT news DOT prodigy DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "one2001boy AT yahoo DOT com" <one2001boy AT yahoo DOT com>
> Date: Fri, 15 Oct 2004 15:58:28 GMT
> 
> I think the algorith for ls.exe might be optimized so that it can
> display some processed files and directory first, not wait till all
> files are processed.

ls.exe cannot possibly do that because it sorts the files according to
some criterion (by default, the file name).  How can it possibly sort
the files before it has them all?

> dir can display the file and directory, "ls" cannot tell the difference 
> between file and direcotry in the display. thus, "ls -F" is preferred. 
> but it is too slow to use for directory with thousandss of files.

If all you need is to know whether a file is a directory, then ls.exe
is not the best tool for that.  Use test.exe from Sh-utils, or
find.exe from Findutils.  They are much faster for this kind of job.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019