Attached are a couple of patches for 3.0 arising from bugs submitted to Debian:
0001: (http://bugs.debian.org/605810) Options provided in ~/.ledgerrc must be specified one-per-line, not all on one line. 0002: (http://bugs.debian.org/605807) Specifying multiple files separated by colons to either LEDGER_FILE or --file does not work (ledger just complains it can't find a:b). Both of these bugs were originally reported against 2.6.2, however I've tested the behaviour of 3.0 (as of current master HEAD, eda6cbd...) and written my patches appropriately (2.6.2 didn't allow --file to be specified multiple times; 3.0 does). - Matt
>From 678ee3f38fc58ad7dbf251d17efd8e2dc42f2c47 Mon Sep 17 00:00:00 2001 From: Matt Palmer <[email protected]> Date: Sat, 11 Dec 2010 10:33:55 +1100 Subject: [PATCH] Document the requirement that each option in ledgerrc must go on it's own line --- doc/ledger.texi | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/ledger.texi b/doc/ledger.texi index 2efb405..200b100 100644 --- a/doc/ledger.texi +++ b/doc/ledger.texi @@ -492,11 +492,12 @@ output. @option{--init-file FILE} (@option{-i FILE}) causes FILE to be read by ledger before any other ledger file. This file may not contain any postings, but it may contain option settings. To specify options -in the init file, use the same syntax as the command-line. Here's an -example init file: +in the init file, use the same syntax as the command-line, but put each +option on it's own line. Here's an example init file: @smallexample --price-db ~/finance/.pricedb +--cache /tmp/ledger-cache ; ~/.ledgerrc ends here @end smallexample @@ -807,6 +808,8 @@ option settings in the file @file{~/.ledgerrc}, for example: @example --cache /tmp/.mycache +--pager /bin/cat + @end example @node Period expressions, Format strings, Options, Quick Reference -- 1.5.6.5
>From 08deb8bb851ad1cfd2c3317241ee01dcfb963553 Mon Sep 17 00:00:00 2001 From: Matt Palmer <[email protected]> Date: Sat, 11 Dec 2010 10:38:09 +1100 Subject: [PATCH] No, you can't separate multiple files with colons --- doc/ledger.texi | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/ledger.texi b/doc/ledger.texi index 200b100..ac7bfc5 100644 --- a/doc/ledger.texi +++ b/doc/ledger.texi @@ -481,8 +481,8 @@ and exits. This is useful for sending bug reports, to let the author know which version of ledger you are using. @option{--file FILE} (@option{-f FILE}) reads FILE as a ledger file. -This command may be used multiple times. FILE may also be a list of -file names separated by colons. Typically, the environment variable +This command may be used multiple times. +Typically, the environment variable @env{LEDGER_FILE} is set, rather than using this command-line option. @option{--output FILE} (@option{-o FILE}) redirects output from any -- 1.5.6.5
