From 0733fd3d58b941ab9b8a6d623ec7fb9175f41579 Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 13 Aug 2023 14:43:55 +0900 Subject: Add a regression test for negative indices and fix a pick/1 test --- jq.1.prebuilt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jq.1.prebuilt') diff --git a/jq.1.prebuilt b/jq.1.prebuilt index f386b49c..162881c1 100644 --- a/jq.1.prebuilt +++ b/jq.1.prebuilt @@ -1050,7 +1050,7 @@ jq \'map_values(\. // empty)\' .IP "" 0 . .SS "pick(pathexps)" -Emit the projection of the input object or array defined by the specified sequence of path expressions, such that if p is any one of these specifications, then \fB(\. | p)\fR will evaluate to the same value as \fB(\. | pick(pathexps) | p)\fR\. For arrays, negative indices and \.[m:n] specifications should not be used\. +Emit the projection of the input object or array defined by the specified sequence of path expressions, such that if \fBp\fR is any one of these specifications, then \fB(\. | p)\fR will evaluate to the same value as \fB(\. | pick(pathexps) | p)\fR\. For arrays, negative indices and \fB\.[m:n]\fR specifications should not be used\. . .IP "" 4 . -- cgit v1.2.3