If a file had blank lines or was totally empty, _list would result in an in-correct count of total items (either "" or the number of lines, instead of the number of items). This commit splits the filtering into three phases: line numbering, filtering (optional), and post-processing, and then does counting separately, if desired. Signed-off-by: Emil Sit <sit@emilsit.net> Signed-off-by: Gina Trapani <ginatrapani@gmail.com>
25 KiB
Executable File
25 KiB
Executable File