From 72a9b612c1d37c6075db384d4eb93fd465f48ba4 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 7 Mar 2021 17:40:50 -0800 Subject: [PATCH] ;cli: fix "hledger CMD --info" with older info This should open the info node for CMD, but was giving an error with info 4.8 on macs. Now it's more robust. --- hledger/Hledger/Cli/DocFiles.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hledger/Hledger/Cli/DocFiles.hs b/hledger/Hledger/Cli/DocFiles.hs index 126b119ae..fc0a51c6c 100644 --- a/hledger/Hledger/Cli/DocFiles.hs +++ b/hledger/Hledger/Cli/DocFiles.hs @@ -131,5 +131,5 @@ runInfoForTopic tool mtopic = withSystemTempFile ("hledger-"++tool++".info") $ \f h -> do BC.hPutStrLn h $ toolDocInfo tool hClose h - callCommand $ dbg1 "info command" $ - "info " ++ f ++ maybe "" (printf " -n '%s'") mtopic + callCommand $ dbg1 "info command" $ + "info -f " ++ f ++ maybe "" (printf " -n '%s'") mtopic