[feature] Can it support interactively jq -r {} syntax.json? not quotes.
Thanks!
I'm hesitant to support this since:
-
{}means something in bash and I'm not entirely sure it'll always work as desired$ echo {1..2} 1 2 - argument parsing may not work properly, and that type of code can be fragile in
bash
I'm open to PRs, though so feel free to create one and we can discuss if the solution works.
I'm hesitant, too. This is some related examples:
find . -name XXX -x rm {} -r \; and cat XXX.txt | xargs -I rm {}, parallel rm {} ::: XXX.txt's {} don't use quotes. fzf --preivew='less {}' use quotes.
After thinking about this, I'm open to implementing this.
It's definitely true that {1..2} can easily just be quoted to avoid bash's expansion. It's also sort-of safe to have it expand incorrectly since interactively is not designed for side-effecting things.
I don't have the time to do this today, but it's pretty straight-forward. Create a PR and I'm happy to review.