Skip to content

Commit 17ebc3d

Browse files
authoredAug 4, 2024··
Merge pull request #2973 from jandubois/bats-stderr
Add new bats variables stderr and stderr_lines
2 parents 4cd7628 + 796c6bd commit 17ebc3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/ShellCheck/AnalyzerLib.hs

+3-1
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,9 @@ getModifiedVariables t =
535535
T_BatsTest {} -> [
536536
(t, t, "lines", DataArray SourceExternal),
537537
(t, t, "status", DataString SourceInteger),
538-
(t, t, "output", DataString SourceExternal)
538+
(t, t, "output", DataString SourceExternal),
539+
(t, t, "stderr", DataString SourceExternal),
540+
(t, t, "stderr_lines", DataArray SourceExternal)
539541
]
540542

541543
-- Count [[ -v foo ]] as an "assignment".

0 commit comments

Comments
 (0)
Please sign in to comment.