Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

set lines to 0 to avoid increment in number of lines #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asntech
Copy link

@asntech asntech commented Nov 22, 2019

Hi @dylanaraps,

I've fixed a bug in lines() by setting the lines variable to 0 as it was incrementing the number of lines if you call lines multiple times.

For example:

$ lines /path/to/file.txt
$ 100
$ lines /path/to/file.txt
$ 200

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant