POSIX warning for export -[^p]. Fixes #1130.

This commit is contained in:
Vidar Holen 2018-02-27 20:38:02 -08:00
parent 9fc3ddf849
commit ee354ffce8
1 changed files with 4 additions and 3 deletions

View File

@ -279,10 +279,11 @@ checkBashisms = ForShell [Sh, Dash] $ \t -> do
"typeset" "typeset"
] ++ if not isDash then ["local", "type"] else [] ] ++ if not isDash then ["local", "type"] else []
allowedFlags = Map.fromList [ allowedFlags = Map.fromList [
("read", if isDash then ["r", "p"] else ["r"]), ("exec", []),
("ulimit", ["f"]), ("export", ["-p"]),
("printf", []), ("printf", []),
("exec", []) ("read", if isDash then ["r", "p"] else ["r"]),
("ulimit", ["f"])
] ]
bashism _ = return () bashism _ = return ()