Skip to content

Commit

Permalink
Add system/2 as an alias to exec/2
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmicToast committed Jun 25, 2024
1 parent 5d3f3cd commit a359afe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/builtin.jq
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,5 @@ def IN(s): any(s == .; .);
def IN(src; s): any(src == s; .);

def exec(path): exec(path; []);
def system(path; args): exec(path; args) | .out | rtrim ;
def system(path): system(path; []);

0 comments on commit a359afe

Please sign in to comment.