fix:Hledger.Utils.String: quoteForCommandLine now quotes "&" [#2468]

This explains the mysterious "7".
This commit is contained in:
Simon Michael 2025-10-01 18:15:02 -10:00
parent 71b1293f06
commit e8672b3a18

View File

@ -184,7 +184,7 @@ quotechars, whitespacechars, redirectchars, shellchars :: [Char]
quotechars = "'\""
whitespacechars = " \t\n\r"
redirectchars = "<>"
shellchars = "<>(){}[]$?#!~`"
shellchars = "<>(){}[]$&?#!~`"
-- | 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.