Home
last modified time | relevance | path

Searched refs:checkShorthandIf (Results 1 – 1 of 1) sorted by relevance

/dports/devel/hs-ShellCheck/ShellCheck-0.8.0/src/ShellCheck/
H A DAnalytics.hs112 ,checkShorthandIf
857 prop_checkShorthandIf = verify checkShorthandIf "[[ ! -z file ]] && scp file host || rm file"
858 prop_checkShorthandIf2 = verifyNot checkShorthandIf "[[ ! -z file ]] && { scp file host || echo 'Ee…
859 prop_checkShorthandIf3 = verifyNot checkShorthandIf "foo && bar || echo baz"
860 prop_checkShorthandIf4 = verifyNot checkShorthandIf "foo && a=b || a=c"
861 prop_checkShorthandIf5 = verifyNot checkShorthandIf "foo && rm || printf b"
862 prop_checkShorthandIf6 = verifyNot checkShorthandIf "if foo && bar || baz; then true; fi"
863 prop_checkShorthandIf7 = verifyNot checkShorthandIf "while foo && bar || baz; do true; done"
864 prop_checkShorthandIf8 = verify checkShorthandIf "if true; then foo && bar || baz; fi"
865 checkShorthandIf params x@(T_AndIf id _ (T_OrIf _ _ (T_Pipeline _ _ t))) function
[all …]