editline truncates at 64 characters in batch mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
editline (Debian) |
Fix Released
|
Unknown
|
|||
editline (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
In batch mode, if the input line is greater than 64 characters, the first 64 characters are lost.
In my case:
$isql-fb < test.sql
the input file of:
SET ECHO ON;
SELECT
dt.*
FROM
Table_10 t10
XXXXJOIN (SELECT * FROM Table_10 t2 WHERE t2.ID = t10.ID) dt ON (1 = 1);
becomes:
SELECT
dt.*
FROM
Table_10 t10
N (1 = 1);
In the above the line :
XXXXJOIN (SELECT * FROM Table_10 t2 WHERE t2.ID = t10.ID) dt ON (1 = 1);
became:
N (1 = 1);
This does not happen in interactive mode, nor does it happen with the version of editline that is included in the firebird source distribution.
This also seems to have been reported and fixed for minix-editline here:
http://
I am still investigating, but this first came to our notice with trying to run the python QMTest tests on the Firebird package distributed with Ubuntu.
Editline version is the latest: 1.12-5 and a quick look on the Debian package, didnt show any latter changes or bug reports.
General info:
$ lsb_release -rd
Description: Ubuntu 7.10
Release: 7.10
$ apt-cache policy libeditline0
libeditline0:
Installed: 1.12-5
Candidate: 1.12-5
Version table:
*** 1.12-5 0
500 http://
100 /var/lib/
Cheers - Mark
Changed in editline: | |
status: | Unknown → New |
Changed in editline (Debian): | |
status: | New → Fix Released |
Ok here is a simple program showing the problem.
It is actually the testit.c program distributed with libeditline,
$make
$./run.sh
essentiallty it does
$./testit < test.txt
Where test.txt has lines over 64 character long.
Cheers - Mark