SC2029 is triggered with 'ssh -o Foo=bar "$host"'

This commit is contained in:
Daniel Hahler 2017-06-13 21:06:01 +02:00
commit 067ef85314

View file

@ -462,6 +462,7 @@ checkInteractiveSu = CommandCheck (Basename "su") f
prop_checkSshCmdStr1 = verify checkSshCommandString "ssh host \"echo $PS1\""
prop_checkSshCmdStr2 = verifyNot checkSshCommandString "ssh host \"ls foo\""
prop_checkSshCmdStr3 = verifyNot checkSshCommandString "ssh \"$host\""
prop_checkSshCmdStr4 = verifyNot checkSshCommandString "ssh -o TCPKeepAlive=no \"$host\""
checkSshCommandString = CommandCheck (Basename "ssh") (f . arguments)
where
nonOptions =