POSIX warning for export -[^p]. Fixes #1130.
This commit is contained in:
parent
9fc3ddf849
commit
ee354ffce8
|
@ -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 ()
|
||||||
|
|
Loading…
Reference in New Issue