Remove incorrect otherwise
You're supposed to use otherwise where you need a Boolean, not a pattern match. This is misleadingly shadowing the real otherwise. Use _ instead.
This commit is contained in:
parent
93be86f988
commit
0f48bb78a5
|
@ -487,7 +487,7 @@ checkBraceExpansionVars = ForShell [Bash] f
|
||||||
T_DollarBraced {} -> return "$"
|
T_DollarBraced {} -> return "$"
|
||||||
T_DollarExpansion {} -> return "$"
|
T_DollarExpansion {} -> return "$"
|
||||||
T_DollarArithmetic {} -> return "$"
|
T_DollarArithmetic {} -> return "$"
|
||||||
otherwise -> return "-"
|
_ -> return "-"
|
||||||
toString t = fromJust $ getLiteralStringExt literalExt t
|
toString t = fromJust $ getLiteralStringExt literalExt t
|
||||||
isEvaled t = do
|
isEvaled t = do
|
||||||
cmd <- getClosestCommandM t
|
cmd <- getClosestCommandM t
|
||||||
|
|
|
@ -135,6 +135,6 @@ shellForExecutable name =
|
||||||
"ksh" -> return Ksh
|
"ksh" -> return Ksh
|
||||||
"ksh88" -> return Ksh
|
"ksh88" -> return Ksh
|
||||||
"ksh93" -> return Ksh
|
"ksh93" -> return Ksh
|
||||||
otherwise -> Nothing
|
_ -> Nothing
|
||||||
|
|
||||||
flagsForRead = "sreu:n:N:i:p:a:t:"
|
flagsForRead = "sreu:n:N:i:p:a:t:"
|
||||||
|
|
Loading…
Reference in New Issue