Skip to content

Improve stdio builtins #847

Open
Open
@nicowilliams

Description

@nicowilliams

The input and inputs builtins should probably not be available (i.e., should raise an error) when -n is not given.

An output builtin should be added that is only available when a new option (-N) is used and which outputs inputs to stdout. If --raw-output is given, then no newline should be output in between, or perhaps there should be a output and raw_output.

I/O functions that deal in numeric Unicode codepoint values would also be nice.

Finally, binary I/O functions that deal in numeric byte values would also be nice.

Altogether this should permit one to use jq -nrNR ... to handle all I/O from stdin / to stdout without having to deal with the normal jq I/O handling, and then practically all I/O related command-line options can be deprecated (but not removed for now).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions