On 9/8/2013 7:21 AM, Craig Earls wrote:
> Patches are always welcome, but some of these look like bugs, i.e. the
> "year" directive should be working. I believe "-i" should be working
> as well. Let's wait for John to wade in here.
Indeed year at least is looking more like a bug. In the following example it
seems like months >= 10 work correctly.
wcravens@aberforth:~/Sandbox/ledger$ cat scratch.dat
; Test year directive
year 2012
1/1 Scratch
Assets:Checking $1000.00
Equity:Opening Bal
1/31 Scratch
Expense:Foo $1.00
Assets:Checking
10/1 Scratch
Expense:Foo $1.00
Assets:Checking
11/1 Scratch
Expense:Foo $1.00
Assets:Checking
12/1 Scratch
Expense:Foo $1.00
Assets:Checking
wcravens@aberforth:~/Sandbox/ledger$ ledger -f scratch.dat --date-format
"%Y/%m/%d" r
2013/01/01 Scratch Assets:Checking $1000.00 $1000.00
Equity:Opening Bal $-1000.00 0
2013/01/31 Scratch Expense:Foo $1.00 $1.00
Assets:Checking $-1.00 0
2012/10/01 Scratch Expense:Foo $1.00 $1.00
Assets:Checking $-1.00 0
2012/11/01 Scratch Expense:Foo $1.00 $1.00
Assets:Checking $-1.00 0
2012/12/01 Scratch Expense:Foo $1.00 $1.00
Assets:Checking $-1.00 0
>
> On Sun, Sep 8, 2013 at 5:11 AM, Wes Cravens <[email protected]> wrote:
>> Before I propose some documentation patches I wanted to double check the
>> following.
>>
>> ## From Section 8.2.2 Basic Options
>>
>> -i FILE no longer exists?
>>
>> wcravens@aberforth:~/Sandbox/ledger$ ledger -i ~/.ledgerrc.bak -f
>> scratch.dat r
>> Error: Illegal option -i
>>
>> ## From Section 4.7.2 Command Directives
>>
>> I'm struggling with the 'year' directive
>>
>> wcravens@aberforth:~/Sandbox/ledger$ cat scratch.dat
>>
>> ; Test year directive
>> year 2012
>>
>> 01/01 Scratch
>> Assets:Checking $1000
>> Equity:Opening Bal
>>
>> wcravens@aberforth:~/Sandbox/ledger$ ledger -f scratch.dat r
>> 13-Jan-01 Scratch Assets:Checking $1000
>> $1000
>> Equity:Opening Bal $-1000
>> 0
>>
>> However the 'Y' directive works as expected.
>>
>> wcravens@aberforth:~/Sandbox/ledger$ cat scratch.dat
>>
>> ; Test year directive
>> Y 2012
>>
>> 01/01 Scratch
>> Assets:Checking $1000
>> Equity:Opening Bal
>>
>> wcravens@aberforth:~/Sandbox/ledger$ ledger -f scratch.dat r
>> 12-Jan-01 Scratch Assets:Checking $1000
>> $1000
>> Equity:Opening Bal $-1000
>> 0
>>
>> Let me know if some doc patches for these would be welcome.
>>
>> --
>> Wes Cravens, Founding Member
>> Moxigen - Oxygen for Moxie
>> http://moxigen.com
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Ledger" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Wes Cravens, Founding Member
Moxigen - Oxygen for Moxie
http://moxigen.com
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.