fix:Hledger.Utils.String: quoteForCommandLine now quotes "&" [#2468]
This explains the mysterious "7".
This commit is contained in:
parent
71b1293f06
commit
e8672b3a18
@ -184,7 +184,7 @@ quotechars, whitespacechars, redirectchars, shellchars :: [Char]
|
|||||||
quotechars = "'\""
|
quotechars = "'\""
|
||||||
whitespacechars = " \t\n\r"
|
whitespacechars = " \t\n\r"
|
||||||
redirectchars = "<>"
|
redirectchars = "<>"
|
||||||
shellchars = "<>(){}[]$?#!~`"
|
shellchars = "<>(){}[]$&?#!~`"
|
||||||
|
|
||||||
-- | Quote-aware version of words - don't split on spaces which are inside quotes.
|
-- | Quote-aware version of words - don't split on spaces which are inside quotes.
|
||||||
-- NB correctly handles "a'b" but not "''a''". Can raise an error if parsing fails.
|
-- NB correctly handles "a'b" but not "''a''". Can raise an error if parsing fails.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user