Tcl Library Source Code

View Ticket
Login
Ticket UUID: 858218
Title: errors thrown with no explanation
Type: Bug Version: None
Submitter: vincentdarley Created on: 2003-12-11 12:07:28
Subsystem: ftp Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Open Last Modified: 2003-12-11 12:07:28
Resolution: None Closed By:
    Closed on:
Description:
This new code:


            # get return code, check for multi-line text
            
            if {[regexp -- "^-?(^[0-9]+)( |-)?(.*)$"
$bufline all rc multi_line msgtext]} {
set errmsg "C: Internal Error @ line 255.
Regex pattern not matching the input "$bufline""
if {$VERBOSE} {
    DisplayMsg $s $errmsg control
}
    } else {
set buffer $bufline

# multi-line format detected ("-"), get all the lines

is throwing errors on both ftp servers I commonly use
(ftp.santafe.edu and ftp.ucsd.edu).  Can the error
message be made more information ('regex pattern didn't
match' isn't very helpful -- what is it expecting? how
did the observed string differ from that?).