Also allow array syntax for args to readonly.

This commit is contained in:
Vidar Holen 2013-07-10 23:15:08 -07:00
parent 3e39411b38
commit 0a2314cdcd
1 changed files with 1 additions and 1 deletions

View File

@ -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"