Don't think declare -x -F var is used (fixes #1209).

This commit is contained in:
Vidar Holen 2018-05-12 17:34:23 -07:00
parent 719e1854e5
commit bca2ad4e18
2 changed files with 4 additions and 1 deletions

View file

@ -498,7 +498,9 @@ getReferencedVariableCommand base@(T_SimpleCommand _ _ (T_NormalWord _ (T_Litera
"export" -> if "f" `elem` flags
then []
else concatMap getReference rest
"declare" -> if any (`elem` flags) ["x", "p"]
"declare" -> if
any (`elem` flags) ["x", "p"] &&
(not $ any (`elem` flags) ["f", "F"])
then concatMap getReference rest
else []
"readonly" ->