Skip to content

Commit

Permalink
interp: Fix $opts shadowing in decode
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Nov 11, 2021
1 parent 4c6de82 commit 178032e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/interp/funcs.jq
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ def _decode_progress:
| stderr
);

def decode($name; $opts):
def decode($name; $decode_opts):
( options as $opts
| (null | stdout) as $stdout
| _decode(
$name;
$opts + {
$opts +
$decode_opts + {
_progress: (
if $opts.decode_progress and $opts.repl and $stdout.is_terminal then
"_decode_progress"
Expand Down

0 comments on commit 178032e

Please sign in to comment.