We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46f177b commit 0607039Copy full SHA for 0607039
src/ShellCheck/Checks/Commands.hs
@@ -122,7 +122,7 @@ checkGetOpts str flags args f =
122
toTokens = map (T_Literal (Id 0)) . words
123
opts = fromMaybe [] $ f (toTokens str)
124
actualFlags = filter (not . null) $ map fst opts
125
- actualArgs = map (\(_, (_, x)) -> onlyLiteralString x) $ filter (null . fst) opts
+ actualArgs = [onlyLiteralString x | ("", (_, x)) <- opts]
126
127
-- Short options
128
prop_checkGetOptsS1 = checkGetOpts "-f x" ["f"] [] $ getOpts (True, True) "f:" []
0 commit comments