On Sat, Oct 20, 2007 at 11:59:08PM +0200, Arjan Koers wrote:
> Today I noticed a small problem when executing commands from a file
> (lftp -f test.script). The last part of some comments isn't treated as a
> comment, but as a command.
Here is a patch to fix it.
--
Alexander.
Index: parsecmd.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/parsecmd.cc,v
retrieving revision 1.13
diff -u -p -r1.13 parsecmd.cc
--- parsecmd.cc 2 Aug 2007 11:26:08 -0000 1.13
+++ parsecmd.cc 22 Oct 2007 08:01:33 -0000
@@ -114,6 +114,8 @@ CmdExec::parse_result CmdExec::parse_one
line++;
if(*line=='\n')
line++;
+ else
+ return PARSE_AGAIN;
skip_cmd(line-line_begin);
return PARSE_OK;
}