mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 10:17:35 +03:00
;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.
This commit is contained in:
parent
36aa01f67a
commit
72a9b612c1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user