From e8672b3a18f8dcf3b6c1fc7a9537522203111d9e Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 1 Oct 2025 18:15:02 -1000 Subject: [PATCH] fix:Hledger.Utils.String: quoteForCommandLine now quotes "&" [#2468] This explains the mysterious "7". --- hledger-lib/Hledger/Utils/String.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger-lib/Hledger/Utils/String.hs b/hledger-lib/Hledger/Utils/String.hs index fb02f7776..a3ec931cf 100644 --- a/hledger-lib/Hledger/Utils/String.hs +++ b/hledger-lib/Hledger/Utils/String.hs @@ -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.