Skip to content

Commit

Permalink
Merge pull request #2973 from jandubois/bats-stderr
Browse files Browse the repository at this point in the history
Add new bats variables stderr and stderr_lines
  • Loading branch information
koalaman authored Aug 4, 2024
2 parents 4cd7628 + 796c6bd commit 17ebc3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ShellCheck/AnalyzerLib.hs
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,9 @@ getModifiedVariables t =
T_BatsTest {} -> [
(t, t, "lines", DataArray SourceExternal),
(t, t, "status", DataString SourceInteger),
(t, t, "output", DataString SourceExternal)
(t, t, "output", DataString SourceExternal),
(t, t, "stderr", DataString SourceExternal),
(t, t, "stderr_lines", DataArray SourceExternal)
]

-- Count [[ -v foo ]] as an "assignment".
Expand Down

0 comments on commit 17ebc3d

Please sign in to comment.