Skip to content
This repository was 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
asntech wants to merge 1 commit intodylanaraps:masterfrom
asntech:master
Open

set lines to 0 to avoid increment in number of lines#10
asntech wants to merge 1 commit intodylanaraps:masterfrom
asntech:master

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.

1 participant