On Sun, Jun 22, 2003 at 10:32:36PM +0200, Yun Zheng Hu wrote:
> If i do a "ls -c" to sort the directory listing on date (doesnt work on all 
> ftpd's) it will not be properly cached, so if i do a "cd <tab>" it will 
> issue a "ls" on it's own again while i already did a "ls -c".
> It doesnt properly cache on every "ls" with an option, is this fixable so 
> every issued "ls" with an option will be cached in the same way?

lftp caches every ls command, but does so for every different parameter set
separately, because different parameters can produce different output.

I.e. retyping `ls -c' you would get the listing from cache.

Filename completion does not parse every possible listing type, so it requests
a listing without any options. It does not parse any options too, and option
interpretation depends on server, so it cannot assume that `ls -c' is the
same file set in the same format but in different order.

Well, it is possible to improve things, but current state is quite logical
and is not erroneous.

-- 
   Alexander.

Reply via email to