Skip to content

Ignore stdin when using --null-input #101

@Lucidiot

Description

@Lucidiot

oq --null-input . or oq -n . should not be waiting for anything coming from stdin, considering that jq will ignore stdin and just use null as the input.

Currently, doing oq -n . will immediately return null, but will still be waiting for something from stdin. The workaround is to send anything or just /dev/null to it:

$ jq -n .
null
$ oq -n .
null
^C
$ oq -n . </dev/null
null
$ echo lol | oq -n .
null

Thanks for this super cool tool by the way 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugAn existing feature isn't doing something correctly

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions