mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 01:59:27 +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
|
||||
where
|
||||
isModifierCommand (T_NormalWord _ [T_Literal _ s]) =
|
||||
s `elem` ["declare", "export", "local", "typeset"]
|
||||
s `elem` ["declare", "export", "local", "readonly", "typeset"]
|
||||
isModifierCommand _ = False
|
||||
|
||||
prop_readPipeline = isOk readPipeline "! cat /etc/issue | grep -i ubuntu"
|
||||
|
Reference in New Issue
Block a user