Skip to content

Commit

Permalink
Add exec/1: exec/2 with empty args array
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmicToast committed May 31, 2024
1 parent 4cd4156 commit d5c9de3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content/manual/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3350,7 +3350,7 @@ sections:
Returns the line number of the input currently being filtered.
- title: "`exec(path; [args…])`"
- title: "`exec(path)`, `exec(path; [args…])`"
body: |
Spawns a new process of path with arguments args. Pipes its input
Expand Down
2 changes: 1 addition & 1 deletion jq.1.prebuilt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/builtin.jq
Original file line number Diff line number Diff line change
Expand Up @@ -278,3 +278,5 @@ def JOIN($idx; stream; idx_expr; join_expr):
stream | [., $idx[idx_expr]] | join_expr;
def IN(s): any(s == .; .);
def IN(src; s): any(src == s; .);

def exec(path): exec(path; []);

0 comments on commit d5c9de3

Please sign in to comment.