deno_task_shell icon indicating copy to clipboard operation
deno_task_shell copied to clipboard

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

Open yingziwu opened this issue 1 year ago • 0 comments

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

yingziwu avatar Jan 29 '24 20:01 yingziwu