Update "tests/man.test" and remove superflous whitespace in manual.yml
Before adoption: this commit came in with the history the project adopted, so no landing records it.
tests/man.test was generated incorrectly and had some duplicate tests, the new CI workflow didn't like that.
authored by Emanuele Torre · committed by Nico Williams · parent c049061 · Browse files · 3 files·+5 added−903 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+5 added−903 removed
- tests:+0 added−898 removed
- other:+5 added−5 removed
Provenance
- Commit
c99981c- Tree
c541565- Author
Emanuele Torre <torreemanuele6@gmail.com>- Committer
Nico Williams <nico@cryptonector.com>- Parent
c049061
3 files changed+5 added−903 removed
modified:docs/content/manual/manual.yml+4 added-4 removed
907 unmodified lines908 909 For any filter `f`, `map(f)` and `map_values(f)` apply `f`910 to each of the values in the input array or object, that is,911 to the values of `.[]`.912- 912+913 In the absence of errors, `map(f)` always outputs an array914 whereas `map_values(f)` outputs an array if given an array,915 or an object if given an object.916 27 unmodified lines944 map_values(empty) #=> []945 946 `map(f)` is equivalent to `[.[] | f]` and947 `map_values(f)` is equivalent to `.[] |= f`.948- 948+949 In fact, these are their implementations.950 951 952 examples:15 unmodified lines968 969 970 - title: "`pick(pathexps)`"971 body: |972- 973- Emit the projection of the input object or array defined by the specified 972+973+ Emit the projection of the input object or array defined by the specified974 sequence of path expressions, such that if p is any one of these specifications,975 then `(. | p)` will evaluate to the same value as `(. | pick(pathexps) | p)`.976 For arrays, negative indices and .[m:n] specifications should not be used.977 2521 unmodified linesmodified:tests/man.test-898 removed
217 unmodified lines218 map_values(.+1)219 {"a": 1, "b": 2, "c": 3}220 {"a": 2, "b": 3, "c": 4}221 222-pick(.a, .b.c, .x)223-{"a": 1, "b": {"c": 2, "d": 3}, "e": 4}224-{"a":1,"b":{"c":2},"x":null}225-226-[1,2,3,4] | pick(.[2], .[0], .[0])227-[1,2,3,4]228-[1,null,3]229-230-path(.a[0].b)231-null232-["a",0,"b"]233-234-[path(..)]235-{"a":[{"b":1}]}236-[[],["a"],["a",0],["a",0,"b"]]237-238-del(.foo)239-{"foo": 42, "bar": 9001, "baz": 42}240-{"bar": 9001, "baz": 42}241-242-del(.[1, 2])243-["foo", "bar", "baz"]244-["foo"]245-246-getpath(["a","b"])247-null248-null249-250-[getpath(["a","b"], ["a","c"])]251-{"a":{"b":0, "c":1}}252-[0, 1]253-254-setpath(["a","b"]; 1)255-null256-{"a": {"b": 1}}257-258-setpath(["a","b"]; 1)259-{"a":{"b":0}}260-{"a": {"b": 1}}261-262-setpath([0,"a"]; 1)263-null264-[{"a":1}]265-266-delpaths([["a","b"]])267-{"a":{"b":1},"x":{"y":2}}268-{"a":{},"x":{"y":2}}269-270-to_entries271-{"a": 1, "b": 2}272-[{"key":"a", "value":1}, {"key":"b", "value":2}]273-274-from_entries275-[{"key":"a", "value":1}, {"key":"b", "value":2}]276-{"a": 1, "b": 2}277-278-with_entries(.key |= "KEY_" + .)279-{"a": 1, "b": 2}280-{"KEY_a": 1, "KEY_b": 2}281-282-map(select(. >= 2))283-[1,5,3,0,7]284-[5,3,7]285-286-.[] | select(.id == "second")287-[{"id": "first", "val": 1}, {"id": "second", "val": 2}]288-{"id": "second", "val": 2}289-290-.[]|numbers291-[[],{},1,"foo",null,true,false]292-1293-294-1, empty, 2295-null296-1297-2298-299-[1,2,empty,3]300-null301-[1,2,3]302-303-try error("\($__loc__)") catch .304-null305-"{\"file\":\"<top-level>\",\"line\":1}"306-307-[paths]308-[1,[[],{"a":2}]]309-[[0],[1],[1,0],[1,1],[1,1,"a"]]310-311-[paths(type == "number")]312-[1,[[],{"a":2}]]313-[[0],[1,1,"a"]]314-315-add316-["a","b","c"]317-"abc"318-319-add320-[1, 2, 3]321-6322-323-add324-[]325-null326-327-any328-[true, false]329-true330-331-any332-[false, false]333-false334-335-any336-[]337-false338-339-all340-[true, false]341-false342-343-all344-[true, true]345-true346-347-all348-[]349-true350-351-flatten352-[1, [2], [[3]]]353-[1, 2, 3]354-355-flatten(1)356-[1, [2], [[3]]]357-[1, 2, [3]]358-359-flatten360-[[]]361-[]362-363-flatten364-[{"foo": "bar"}, [{"foo": "baz"}]]365-[{"foo": "bar"}, {"foo": "baz"}]366-367-range(2; 4)368-null369-2370-3371-372-[range(2; 4)]373-null374-[2,3]375-376-[range(4)]377-null378-[0,1,2,3]379-380-[range(0; 10; 3)]381-null382-[0,3,6,9]383-384-[range(0; 10; -1)]385-null386-[]387-388-[range(0; -5; -1)]389-null390-[0,-1,-2,-3,-4]391-392-floor393-3.14159394-3395-396-sqrt397-9398-3399-400-.[] | tonumber401-[1, "1"]402-1403-1404-405-.[] | tostring406-[1, "1", [1]]407-"1"408-"1"409-"[1]"410-411-map(type)412-[0, false, [], {}, null, "hello"]413-["number", "boolean", "array", "object", "null", "string"]414-415-.[] | (infinite * .) < 0416-[-1, 1]417-true418-false419-420-infinite, nan | type421-null422-"number"423-"number"424-425-sort426-[8,3,null,6]427-[null,3,6,8]428-429-sort_by(.foo)430-[{"foo":4, "bar":10}, {"foo":3, "bar":100}, {"foo":2, "bar":1}]431-[{"foo":2, "bar":1}, {"foo":3, "bar":100}, {"foo":4, "bar":10}]432-433-group_by(.foo)434-[{"foo":1, "bar":10}, {"foo":3, "bar":100}, {"foo":1, "bar":1}]435-[[{"foo":1, "bar":10}, {"foo":1, "bar":1}], [{"foo":3, "bar":100}]]436-437-min438-[5,4,2,7]439-2440-441-max_by(.foo)442-[{"foo":1, "bar":14}, {"foo":2, "bar":3}]443-{"foo":2, "bar":3}444-445-unique446-[1,2,5,3,5,3,1,3]447-[1,2,3,5]448-449-unique_by(.foo)450-[{"foo": 1, "bar": 2}, {"foo": 1, "bar": 3}, {"foo": 4, "bar": 5}]451-[{"foo": 1, "bar": 2}, {"foo": 4, "bar": 5}]452-453-unique_by(length)454-["chunky", "bacon", "kitten", "cicada", "asparagus"]455-["bacon", "chunky", "asparagus"]456-457-reverse458-[1,2,3,4]459-[4,3,2,1]460-461-contains("bar")462-"foobar"463-true464-465-contains(["baz", "bar"])466-["foobar", "foobaz", "blarp"]467-true468-469-contains(["bazzzzz", "bar"])470-["foobar", "foobaz", "blarp"]471-false472-473-contains({foo: 12, bar: [{barp: 12}]})474-{"foo": 12, "bar":[1,2,{"barp":12, "blip":13}]}475-true476-477-contains({foo: 12, bar: [{barp: 15}]})478-{"foo": 12, "bar":[1,2,{"barp":12, "blip":13}]}479-false480-481-indices(", ")482-"a,b, cd, efg, hijk"483-[3,7,12]484-485-indices(1)486-[0,1,2,1,3,1,4]487-[1,3,5]488-489-indices([1,2])490-[0,1,2,3,1,4,2,5,1,2,6,7]491-[1,8]492-493-index(", ")494-"a,b, cd, efg, hijk"495-3496-497-rindex(", ")498-"a,b, cd, efg, hijk"499-12500-501-inside("foobar")502-"bar"503-true504-505-inside(["foobar", "foobaz", "blarp"])506-["baz", "bar"]507-true508-509-inside(["foobar", "foobaz", "blarp"])510-["bazzzzz", "bar"]511-false512-513-inside({"foo": 12, "bar":[1,2,{"barp":12, "blip":13}]})514-{"foo": 12, "bar": [{"barp": 12}]}515-true516-517-inside({"foo": 12, "bar":[1,2,{"barp":12, "blip":13}]})518-{"foo": 12, "bar": [{"barp": 15}]}519-false520-521-[.[]|startswith("foo")]522-["fo", "foo", "barfoo", "foobar", "barfoob"]523-[false, true, false, true, false]524-525-[.[]|endswith("foo")]526-["foobar", "barfoo"]527-[false, true]528-529-combinations530-[[1,2], [3, 4]]531-[1, 3]532-[1, 4]533-[2, 3]534-[2, 4]535-536-combinations(2)537-[0, 1]538-[0, 0]539-[0, 1]540-[1, 0]541-[1, 1]542-543-[.[]|ltrimstr("foo")]544-["fo", "foo", "barfoo", "foobar", "afoo"]545-["fo","","barfoo","bar","afoo"]546-547-[.[]|rtrimstr("foo")]548-["fo", "foo", "barfoo", "foobar", "foob"]549-["fo","","bar","foobar","foob"]550-551-explode552-"foobar"553-[102,111,111,98,97,114]554-555-implode556-[65, 66, 67]557-"ABC"558-559-split(", ")560-"a, b,c,d, e, "561-["a","b,c,d","e",""]562-563-join(", ")564-["a","b,c,d","e"]565-"a, b,c,d, e"566-567-join(" ")568-["a",1,2.3,true,null,false]569-"a 1 2.3 true false"570-571-[while(.<100; .*2)]572-1573-[1,2,4,8,16,32,64]574-575-[repeat(.*2, error)?]576-1577-[2]578-579-[.,1]|until(.[0] < 1; [.[0] - 1, .[1] * .[0]])|.[1]580-4581-24582-583-recurse(.foo[])584-{"foo":[{"foo": []}, {"foo":[{"foo":[]}]}]}585-{"foo":[{"foo":[]},{"foo":[{"foo":[]}]}]}586-{"foo":[]}587-{"foo":[{"foo":[]}]}588-{"foo":[]}589-590-recurse591-{"a":0,"b":[1]}592-{"a":0,"b":[1]}593-0594-[1]595-1596-597-recurse(. * .; . < 20)598-2599-2600-4601-16602-603-walk(if type == "array" then sort else . end)604-[[4, 1, 7], [8, 5, 2], [3, 6, 9]]605-[[1,4,7],[2,5,8],[3,6,9]]606-607-walk( if type == "object" then with_entries( .key |= sub( "^_+"; "") ) else . end )608-[ { "_a": { "__b": 2 } } ]609-[{"a":{"b":2}}]610-611-$ENV.PAGER612-null613-"less"614-615-env.PAGER616-null617-"less"618-619-transpose620-[[1], [2,3]]621-[[1,2],[null,3]]622-623-bsearch(0)624-[0,1]625-0626-627-bsearch(0)628-[1,2,3]629--1630-631-bsearch(4) as $ix | if $ix < 0 then .[-(1+$ix)] = 4 else . end632-[1,2,3]633-[1,2,3,4]634-635-"The input was \(.), which is one less than \(.+1)"636-42637-"The input was 42, which is one less than 43"638-639-[.[]|tostring]640-[1, "foo", ["foo"]]641-["1","foo","[\"foo\"]"]642-643-[.[]|tojson]644-[1, "foo", ["foo"]]645-["1","\"foo\"","[\"foo\"]"]646-647-[.[]|tojson|fromjson]648-[1, "foo", ["foo"]]649-[1,"foo",["foo"]]650-651-@html652-"This works if x < y"653-"This works if x < y"654-655-@sh "echo \(.)"656-"O'Hara's Ale"657-"echo 'O'\\''Hara'\\''s Ale'"658-659-@base64660-"This is a message"661-"VGhpcyBpcyBhIG1lc3NhZ2U="662-663-@base64d664-"VGhpcyBpcyBhIG1lc3NhZ2U="665-"This is a message"666-667-fromdate668-"2015-03-05T23:51:47Z"669-1425599507670-671-strptime("%Y-%m-%dT%H:%M:%SZ")672-"2015-03-05T23:51:47Z"673-[2015,2,5,23,51,47,4,63]674-675-strptime("%Y-%m-%dT%H:%M:%SZ")|mktime676-"2015-03-05T23:51:47Z"677-1425599507678-679-. == false680-null681-false682-683-. == {"b": {"d": (4 + 1e-20), "c": 3}, "a":1}684-{"a":1, "b": {"c": 3, "d": 4}}685-true686-687-.[] == 1688-[1, 1.0, "1", "banana"]689-true690-true691-false692-false693-694-if . == 0 then "zero" elif . == 1 then "one" else "many" end695-2696-"many"697-698-. < 5699-2700-true701-702-42 and "a string"703-null704-true705-706-(true, false) or false707-null708-true709-false710-711-(true, true) and (true, false)712-null713-true714-false715-true716-false717-718-[true, false | not]719-null720-[false, true]721-722-.foo // 42723-{"foo": 19}724-19725-726-.foo // 42727-{}728-42729-730-try .a catch ". is not an object"731-true732-". is not an object"733-734-[.[]|try .a]735-[{}, true, {"a":1}]736-[null, 1]737-738-try error("some exception") catch .739-true740-"some exception"741-742-[.[] | .a?]743-[{}, true, {"a":1}]744-[null, 1]745-746-[.[] | tonumber?]747-["1", "invalid", "3", 4]748-[1, 3, 4]749-750-test("foo")751-"foo"752-true753-754-.[] | test("a b c # spaces are ignored"; "ix")755-["xabcd", "ABC"]756-true757-true758-759-match("(abc)+"; "g")760-"abc abc"761-{"offset": 0, "length": 3, "string": "abc", "captures": [{"offset": 0, "length": 3, "string": "abc", "name": null}]}762-{"offset": 4, "length": 3, "string": "abc", "captures": [{"offset": 4, "length": 3, "string": "abc", "name": null}]}763-764-match("foo")765-"foo bar foo"766-{"offset": 0, "length": 3, "string": "foo", "captures": []}767-768-match(["foo", "ig"])769-"foo bar FOO"770-{"offset": 0, "length": 3, "string": "foo", "captures": []}771-{"offset": 8, "length": 3, "string": "FOO", "captures": []}772-773-match("foo (?<bar123>bar)? foo"; "ig")774-"foo bar foo foo foo"775-{"offset": 0, "length": 11, "string": "foo bar foo", "captures": [{"offset": 4, "length": 3, "string": "bar", "name": "bar123"}]}776-{"offset": 12, "length": 8, "string": "foo foo", "captures": [{"offset": -1, "length": 0, "string": null, "name": "bar123"}]}777-778-[ match("."; "g")] | length779-"abc"780-3781-782-capture("(?<a>[a-z]+)-(?<n>[0-9]+)")783-"xyzzy-14"784-{ "a": "xyzzy", "n": "14" }785-786-.bar as $x | .foo | . + $x787-{"foo":10, "bar":200}788-210789-790-. as $i|[(.*2|. as $i| $i), $i]791-5792-[10,5]793-794-. as [$a, $b, {c: $c}] | $a + $b + $c795-[2, 3, {"c": 4, "d": 5}]796-9797-798-.[] as [$a, $b] | {a: $a, b: $b}799-[[0], [0, 1], [2, 1, 0]]800-{"a":0,"b":null}801-{"a":0,"b":1}802-{"a":2,"b":1}803-804-.[] as {$a, $b, c: {$d, $e}} ?// {$a, $b, c: [{$d, $e}]} | {$a, $b, $d, $e}805-[{"a": 1, "b": 2, "c": {"d": 3, "e": 4}}, {"a": 1, "b": 2, "c": [{"d": 3, "e": 4}]}]806-{"a":1,"b":2,"d":3,"e":4}807-{"a":1,"b":2,"d":3,"e":4}808-809-.[] as {$a, $b, c: {$d}} ?// {$a, $b, c: [{$e}]} | {$a, $b, $d, $e}810-[{"a": 1, "b": 2, "c": {"d": 3, "e": 4}}, {"a": 1, "b": 2, "c": [{"d": 3, "e": 4}]}]811-{"a":1,"b":2,"d":3,"e":null}812-{"a":1,"b":2,"d":null,"e":4}813-814-.[] as [$a] ?// [$b] | if $a != null then error("err: \($a)") else {$a,$b} end815-[[3]]816-{"a":null,"b":3}817-818-def addvalue(f): . + [f]; map(addvalue(.[0]))819-[[1,2],[10,20]]820-[[1,2,1], [10,20,10]]821-822-def addvalue(f): f as $x | map(. + $x); addvalue(.[0])823-[[1,2],[10,20]]824-[[1,2,1,2], [10,20,1,2]]825-826-reduce .[] as $item (0; . + $item)827-[10,2,5,3]828-20829-830-isempty(empty)831-null832-true833-834-[limit(3;.[])]835-[0,1,2,3,4,5,6,7,8,9]836-[0,1,2]837-838-[first(range(.)), last(range(.)), nth(./2; range(.))]839-10840-[0,9,5]841-842-[range(.)]|[first, last, nth(5)]843-10844-[0,9,5]845-846-[foreach .[] as $item ([[],[]]; if $item == null then [[],.[0]] else [(.[0] + [$item]),[]] end; if $item == null then .[1] else empty end)]847-[1,2,3,4,null,"a","b",null]848-[[1,2,3,4],["a","b"]]849-850-def range(init; upto; by): def _range: if (by > 0 and . < upto) or (by < 0 and . > upto) then ., ((.+by)|_range) else . end; if by == 0 then init else init|_range end | select((by > 0 and . < upto) or (by < 0 and . > upto)); range(0; 10; 3)851-null852-0853-3854-6855-9856-857-def while(cond; update): def _while: if cond then ., (update | _while) else empty end; _while; [while(.<100; .*2)]858-1859-[1,2,4,8,16,32,64]860-861-[1|truncate_stream([[0],1],[[1,0],2],[[1,0]],[[1]])]862-1863-[[[0],2],[[0]]]864-865-fromstream(1|truncate_stream([[0],1],[[1,0],2],[[1,0]],[[1]]))866-null867-[2]868-869-. as $dot|fromstream($dot|tostream)|.==$dot870-[0,[1,{"a":1},{"b":2}]]871-true872-873-(..|select(type=="boolean")) |= if . then 1 else 0 end874-[true,false,[5,true,[true,[false]],false]]875-[1,0,[5,1,[1,[0]],0]]876-877-.foo += 1878-{"foo": 42}879-{"foo": 43}880-881-.a = .b882-{"a": {"b": 10}, "b": 20}883-{"a":20,"b":20}884-885-.a |= .b886-{"a": {"b": 10}, "b": 20}887-{"a":10,"b":20}888-889-(.a, .b) = range(3)890-null891-{"a":0,"b":0}892-{"a":1,"b":1}893-{"a":2,"b":2}894-895-(.a, .b) |= range(3)896-null897-{"a":0,"b":0}898-899-.900-"Hello, world!"901-"Hello, world!"902-903-. | tojson904-12345678909876543212345905-"12345678909876543212345"906-907-map([., . == 1]) | tojson908-[1, 1.000, 1.0, 100e-2]909-"[[1,true],[1.000,true],[1.0,true],[1.00,true]]"910-911-. as $big | [$big, $big + 1] | map(. > 10000000000000000000000000000000)912-10000000000000000000000000000001913-[true, false]914-915-.foo916-{"foo": 42, "bar": "less interesting data"}917-42918-919-.foo920-{"notfoo": true, "alsonotfoo": false}921-null922-923-.["foo"]924-{"foo": 42}925-42926-927-.foo?928-{"foo": 42, "bar": "less interesting data"}929-42930-931-.foo?932-{"notfoo": true, "alsonotfoo": false}933-null934-935-.["foo"]?936-{"foo": 42}937-42938-939-[.foo?]940-[1,2]941-[]942-943-.[0]944-[{"name":"JSON", "good":true}, {"name":"XML", "good":false}]945-{"name":"JSON", "good":true}946-947-.[2]948-[{"name":"JSON", "good":true}, {"name":"XML", "good":false}]949-null950-951-.[-2]952-[1,2,3]953-2954-955-.[2:4]956-["a","b","c","d","e"]957-["c", "d"]958-959-.[2:4]960-"abcdefghi"961-"cd"962-963-.[:3]964-["a","b","c","d","e"]965-["a", "b", "c"]966-967-.[-2:]968-["a","b","c","d","e"]969-["d", "e"]970-971-.[]972-[{"name":"JSON", "good":true}, {"name":"XML", "good":false}]973-{"name":"JSON", "good":true}974-{"name":"XML", "good":false}975-976-.[]977-[]978-979-.[]980-{"a": 1, "b": 1}981-1982-1983-984-.foo, .bar985-{"foo": 42, "bar": "something else", "baz": true}986-42987-"something else"988-989-.user, .projects[]990-{"user":"stedolan", "projects": ["jq", "wikiflow"]}991-"stedolan"992-"jq"993-"wikiflow"994-995-.[4,2]996-["a","b","c","d","e"]997-"e"998-"c"999-1000-.[] | .name1001-[{"name":"JSON", "good":true}, {"name":"XML", "good":false}]1002-"JSON"1003-"XML"1004-1005-(. + 2) * 51006-11007-151008-1009-[.user, .projects[]]1010-{"user":"stedolan", "projects": ["jq", "wikiflow"]}1011-["stedolan", "jq", "wikiflow"]1012-1013-[ .[] | . * 2]1014-[1, 2, 3]1015-[2, 4, 6]1016-1017-{user, title: .titles[]}1018-{"user":"stedolan","titles":["JQ Primer", "More JQ"]}1019-{"user":"stedolan", "title": "JQ Primer"}1020-{"user":"stedolan", "title": "More JQ"}1021-1022-{(.user): .titles}1023-{"user":"stedolan","titles":["JQ Primer", "More JQ"]}1024-{"stedolan": ["JQ Primer", "More JQ"]}1025-1026-..|.a?1027-[[{"a":1}]]1028-11029-1030-.a + 11031-{"a": 7}1032-81033-1034-.a + .b1035-{"a": [1,2], "b": [3,4]}1036-[1,2,3,4]1037-1038-.a + null1039-{"a": 1}1040-11041-1042-.a + 11043-{}1044-11045-1046-{a: 1} + {b: 2} + {c: 3} + {a: 42}1047-null1048-{"a": 42, "b": 2, "c": 3}1049-1050-4 - .a1051-{"a":3}1052-11053-1054-. - ["xml", "yaml"]1055-["xml", "yaml", "json"]1056-["json"]1057-1058-10 / . * 31059-51060-61061-1062-. / ", "1063-"a, b,c,d, e"1064-["a","b,c,d","e"]1065-1066-{"k": {"a": 1, "b": 2}} * {"k": {"a": 0,"c": 3}}1067-null1068-{"k": {"a": 0, "b": 2, "c": 3}}1069-1070-.[] | (1 / .)?1071-[1,0,-1]1072-11073--11074-1075-.[] | length1076-[[1,2], "string", {"a":2}, null, -5]1077-21078-61079-11080-01081-51082-1083-utf8bytelength1084-"\u03bc"1085-21086-1087-keys1088-{"abc": 1, "abcd": 2, "Foo": 3}1089-["Foo", "abc", "abcd"]1090-1091-keys1092-[42,3,35]1093-[0,1,2]1094-1095-map(has("foo"))1096-[{"foo": 42}, {}]1097-[true, false]1098-1099-map(has(2))1100-[[0,1], ["a","b","c"]]1101-[false, true]1102-1103-.[] | in({"foo": 42})1104-["foo", "bar"]1105-true1106-false1107-1108-map(in([0,1]))1109-[2, 0]1110-[false, true]1111-1112-map(.+1)1113-[1,2,3]1114-[2,3,4]1115-1116-map_values(.+1)1117-{"a": 1, "b": 2, "c": 3}1118-{"a": 2, "b": 3, "c": 4}1119-222 map(., .)223 [1,2]224 [1,1,2,2]225 681 unmodified linesmodified:jq.1.prebuilt+1 added-1 removed
965 unmodified lines966 .967 .IP "" 0968 .969 .SS "pick(pathexps)"970-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\.970+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\.971 .972 .IP "" 4973 .974 .nf2811 unmodified lines