Also allow array syntax for args to readonly.
This commit is contained in:
parent
3e39411b38
commit
0a2314cdcd
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue