diff options
author | itchyny <itchyny@cybozu.co.jp> | 2023-08-13 14:43:55 +0900 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2023-08-16 17:49:44 -0500 |
commit | 0733fd3d58b941ab9b8a6d623ec7fb9175f41579 (patch) | |
tree | d06c1831536cdb641ee9a022f20aa352a7776c29 /jq.1.prebuilt | |
parent | f85c9fcb78f89fa833f2d5a2cf26b54318e06e05 (diff) |
Add a regression test for negative indices and fix a pick/1 test
Diffstat (limited to 'jq.1.prebuilt')
-rw-r--r-- | jq.1.prebuilt | 2 |
1 files changed, 1 insertions, 1 deletions
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 . |