File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2692,7 +2692,7 @@ checkRedirectedNowhere params token =
2692
2692
case drop 1 $ getPath (parentMap params) t of
2693
2693
T_DollarExpansion _ [_] : _ -> True
2694
2694
T_Backticked _ [_] : _ -> True
2695
- T_Annotation _ _ u : _ -> isInExpansion u
2695
+ t @ T_Annotation {} : _ -> isInExpansion t
2696
2696
_ -> False
2697
2697
getDanglingRedirect token =
2698
2698
case token of
Original file line number Diff line number Diff line change @@ -231,5 +231,7 @@ prop_filewideAnnotation8 = null $
231
231
prop_sourcePartOfOriginalScript = -- #1181: -x disabled posix warning for 'source'
232
232
2039 `elem` checkWithIncludes [(" ./saywhat.sh" , " echo foo" )] " #!/bin/sh\n source ./saywhat.sh"
233
233
234
+ prop_spinBug1413 = null $ check " fun() {\n # shellcheck disable=SC2188\n > /dev/null\n }\n "
235
+
234
236
return []
235
237
runTests = $ quickCheckAll
You can’t perform that action at this time.
0 commit comments