Skip to content

Commit e8672b3

Browse files
committed
fix:Hledger.Utils.String: quoteForCommandLine now quotes "&" [#2468]
This explains the mysterious "7".
1 parent 71b1293 commit e8672b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hledger-lib/Hledger/Utils/String.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ quotechars, whitespacechars, redirectchars, shellchars :: [Char]
184184
quotechars = "'\""
185185
whitespacechars = " \t\n\r"
186186
redirectchars = "<>"
187-
shellchars = "<>(){}[]$?#!~`"
187+
shellchars = "<>(){}[]$&?#!~`"
188188

189189
-- | Quote-aware version of words - don't split on spaces which are inside quotes.
190190
-- NB correctly handles "a'b" but not "''a''". Can raise an error if parsing fails.

0 commit comments

Comments
 (0)