Skip to content

head -n, --lines don't support the leading '-' #109

Open
@yingziwu

Description

@yingziwu

Version

$ deno --version
deno 1.40.1 (release, x86_64-unknown-linux-gnu)
v8 12.1.285.6
typescript 5.3.3

Step to reproduce

deno.jsonc

{
  "tasks": {
    "test-head": "head -n -1 test.txt"
  }
}

test.txt

01
02
03
04
05

Except behavior

$ head -n -1 test.txt
01
02
03
04

Actual behavior

$ deno task test-head                   
Task test-head head -n -1 test.txt
head: invalid digit found in string

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions