mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-09-10 04:17:12 +08:00
Also allow array syntax for args to readonly.
This commit is contained in:
@@ -1111,7 +1111,7 @@ readSimpleCommand = called "simple command" $ do
|
|||||||
return $ makeSimpleCommand id1 id2 prefix [cmd] suffix
|
return $ makeSimpleCommand id1 id2 prefix [cmd] suffix
|
||||||
where
|
where
|
||||||
isModifierCommand (T_NormalWord _ [T_Literal _ s]) =
|
isModifierCommand (T_NormalWord _ [T_Literal _ s]) =
|
||||||
s `elem` ["declare", "export", "local", "typeset"]
|
s `elem` ["declare", "export", "local", "readonly", "typeset"]
|
||||||
isModifierCommand _ = False
|
isModifierCommand _ = False
|
||||||
|
|
||||||
prop_readPipeline = isOk readPipeline "! cat /etc/issue | grep -i ubuntu"
|
prop_readPipeline = isOk readPipeline "! cat /etc/issue | grep -i ubuntu"
|
||||||
|
Reference in New Issue
Block a user