Skip to content

Some float and negative number differences to jq #232

@wader

Description

@wader

I don't know if jaq aim to be jq compatible in these cases:

# jaq errors, jq ceils
jq -n '"abcd"[1.9:2.9]'
"bc"

# jaq errors, jq ceils codepoint
# jq -n '[106.9, 113.0] | implode'
"jq"

# jq master not 1.7.1
$ jq -n 'limit(-2; 1,2,3,4,5)'
jq: error (at <unknown>): limit doesn't support negative count
$ jaq -n 'limit(-2; 1,2,3,4,5)'
<empty>

# jaq errors
$ jq -n 'limit(2.1; 1,2,3,4,5)'
1
2
3

$ jq -n 'halt_error(2.1)'; echo $?
2
$ jaq -n 'halt_error(2.1)'
Error: cannot use 2.1 as integer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions