Menu

.linreg command hangs when input file does not have crlf on last line

Anonymous
2016-04-27
2016-05-02
  • Anonymous

    Anonymous - 2016-04-27

    copy paste using notepad++ created a file whose last line did not have a crlf.

    Using the .linreg command hung while trying to read it. ^C did not kill the read.

    Problem is most likely to be found in function

    ManagedFileHandles::FileHandleAttributes::readLine(std::string &line)
    

    Ensuring that all files have end of line is a work around for this issue, but correction needs to be scheduled. Control-C issue likely affects other builtin commands which read from the standard input stream.

     
  • Lowell Boggs, Jr.

    Issue to be corrected by 5/2/2016 in release 1.1.40.

     
  • Lowell Boggs, Jr.

    The problem turned out to be different than originally guessed. The .linreg command reads only from stdin, and the function that does that reading is named headline(). It was created for the .head command, so .head had the same problem.

    both were fixed in release 1.1.40 of 1-May-2016.

     

Anonymous
Anonymous

Add attachments
Cancel