Re: Request for "compat mode"
"Alexander V. Lukyanov" <[email protected]>
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, May 10, 2004 at 05:52:07PM +0200, Petr Ostadal wrote:
> I added your super lfp client to our distribution when I enter this job,
> today I'd like drop lukemftp and use lftp as default ftp client, but
> approving is depend on implementation of "compat mode" (= use same classic
> base command from common unix ftp clients). I found that Peter C. Norton
> asked about it on yours both mailing lists (sub: Question about the lftp
> interface), but I didn't find any answer.
>
> Cold be implemented this compat feature in you future lftp release,
> please?
I think it could be done as a module, which registers its own commands.
Then the compat mode would be initiated with `lftp -e "module compat"'.
The module would contain function module_init:
extern "C"
void module_init()
{
CmdExec::RegisterCommand("get",&compat_get,"get source [dest]","get a file (compatible with ftp(1))");
...
}
--
Alexander.