Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Breaks when -q and initial expression are given as parameters #29

Open
slosd opened this issue Dec 7, 2021 · 0 comments
Open

Breaks when -q and initial expression are given as parameters #29

slosd opened this issue Dec 7, 2021 · 0 comments

Comments

@slosd
Copy link

slosd commented Dec 7, 2021

How to reproduce:

Install with go get github.com/fiatjaf/jiq/cmd/jiq
Run echo '{"field": 1}' | jiq -q '.field'

Expected

[jq]> .field

1

Actual

[jq]> .field

and after typing:

[jq]> .field
jq: error: Could not open file .field: No such file or directory

I was writing a small bash script wrapper which would keep a history of expressions for a given input file, so I need -q for saving it and the initial expression argument for restoring the most recent expression.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants