Make it easier to use jq with shebangs (fix #1044)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Allow a continuation on a comment immediately after a shebang to make this traditional hack possible: #!/bin/sh # this next line is ignored by jq \ exec jq -f "$0" "$@" # jq code follows But continue only on the first line following a shebang, and only if it's a comment.
authored by Nicolas Williams · committed by David Tolnay · parent 856a4b2 · Browse files · 3 files+22 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+22 added−1 removed
- tests:+6 added−0 removed
- other:+16 added−1 removed