From 71b1293f0625ee2448d67077750433f7d263badf Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 1 Oct 2025 17:56:49 -1000 Subject: [PATCH] fix:Hledger.Utils.String: quoteForCommandLine no longer quotes "7" [#2468] 7 is no longer considered a scary shell character. (This appears to have been harmless, used only for formatting the balance assertion failure message.) --- 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 7b90edc55..fb02f7776 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 = "<>(){}[]$7?#!~`" +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.