mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
@@ -2259,7 +2259,7 @@ sections:
|
||||
# Repeat an expression until it raises "break" as an
|
||||
# error, then stop repeating without re-raising the error.
|
||||
# But if the error caught is not "break" then re-raise it.
|
||||
try repeat(exp) catch .=="break" then empty else error;
|
||||
try repeat(exp) catch if .=="break" then empty else error
|
||||
|
||||
jq has a syntax for named lexical labels to "break" or "go (back) to":
|
||||
|
||||
|
||||
@@ -1920,7 +1920,7 @@ sections:
|
||||
# Repeat an expression until it raises "break" as an
|
||||
# error, then stop repeating without re-raising the error.
|
||||
# But if the error caught is not "break" then re-raise it.
|
||||
try repeat(exp) catch .=="break" then empty else error;
|
||||
try repeat(exp) catch if .=="break" then empty else error
|
||||
|
||||
jq has a syntax for named lexical labels to "break" or "go (back) to":
|
||||
|
||||
|
||||
@@ -2166,7 +2166,7 @@ sections:
|
||||
# Repeat an expression until it raises "break" as an
|
||||
# error, then stop repeating without re-raising the error.
|
||||
# But if the error caught is not "break" then re-raise it.
|
||||
try repeat(exp) catch .=="break" then empty else error;
|
||||
try repeat(exp) catch if .=="break" then empty else error
|
||||
|
||||
jq has a syntax for named lexical labels to "break" or "go (back) to":
|
||||
|
||||
|
||||
Reference in New Issue
Block a user