]> granicus.if.org Git - jq/commit
Conditional exprs are not path exprs (fix #1368)
authorNicolas Williams <nico@cryptonector.com>
Wed, 15 Mar 2017 06:07:37 +0000 (01:07 -0500)
committerNicolas Williams <nico@cryptonector.com>
Wed, 15 Mar 2017 06:07:37 +0000 (01:07 -0500)
commitb142d484d58696e7e5be33b196d131169a032a76
tree1f153e5b286fa991948cfba1716110e7a7b5a15f
parent674e9fb7c29584f6591340a26e2e6156b1ed2c99
Conditional exprs are not path exprs (fix #1368)

The conditional expression in if-then-elif-else-end cannot contribute to
path expressions because it doesn't change the input to any of the then/
elif/else expressions.  These must be generated via gen_subexp().

See also #1366.
src/compile.c
tests/jq.test