Skip to content

Instantly share code, notes, and snippets.

@afh
Created November 7, 2009 09:02
Show Gist options
  • Save afh/228620 to your computer and use it in GitHub Desktop.
Save afh/228620 to your computer and use it in GitHub Desktop.
% ./build/ledger/debug/ledger --version | head -1
Ledger next-0-g3f00f83, the command-line accounting tool
% ./build/ledger/debug/ledger -f doc/sample.dat reg
While parsing file "doc/sample.dat", line 3:
While parsing value expression:
account =~ /^Expenses:Books/
^^^^^^^^^^^^^^^^^
While parsing periodic transaction:
> = account =~ /^Expenses:Books/
Error: std::bad_cast
kei% tail +10 doc/sample.dat|./build/ledger/debug/ledger -f - reg
2004/05/01 Checking balance Assets:Bank:Checking $1,000.00 $1,000.00
Equity:Opening Balances $-1,000.00 0
2004/05/03 Investment balance Assets:Brokerage 50 AAPL 50 AAPL
Equity:Opening Balances $-1,500.00 $-1,500.00
50 AAPL
2004/05/14 Páy dày Assets:Bank:Checking 500.00€ $-1,500.00
50 AAPL
500.00€
Income:Salary -500.00€ $-1,500.00
50 AAPL
2004/05/14 Another dày in whi.. As:Bá:Ch:As:Bá:Chécking $500.00 $-1,000.00
50 AAPL
Income:Salary $-500.00 $-1,500.00
50 AAPL
2004/05/14 Another dày in whi.. Ру:Ру:Ру:Русский язык $1,000.00 $-500.00
50 AAPL
Income:Salary $-1,000.00 $-1,500.00
50 AAPL
2004/05/27 Book Store Expenses:Books $20.00 $-1,480.00
50 AAPL
Expenses:Cards $40.00 $-1,440.00
50 AAPL
Expenses:Docs $30.00 $-1,410.00
50 AAPL
Liabilities:MasterCard $-90.00 $-1,500.00
50 AAPL
2004/05/27 Credit card company Liabilities:MasterCard $20.00 $-1,480.00
50 AAPL
Assets:Bank:Checking $-20.00 $-1,500.00
50 AAPL
% tail +10 doc/sample.dat|./build/ledger/debug/ledger -f - reg income
Error: std::bad_cast
% tail +10 doc/sample.dat|./build/ledger/debug/ledger -f - bal income
Error: std::bad_cast
% ./build/ledger/debug/ledger --version | head -1
Ledger next-0-g01255bd, the command-line accounting tool
% port installed boost
The following ports are currently installed:
boost @1.40.0_1+debug+python26+st (active)
boost @1.40.0_1+python26
% ./build/ledger/debug/ledger -f doc/sample.dat reg
While parsing file "doc/sample.dat", line 3:
While parsing value expression:
account =~ /^Expenses:Books/
^^^^^^^^^^^^^^^^^
While parsing periodic transaction:
> = account =~ /^Expenses:Books/
Error: std::bad_cast
% tail +10 doc/sample.dat|./build/ledger/debug/ledger -f - reg
2004/05/01 Checking balance Assets:Bank:Checking $1,000.00 $1,000.00
Eq:Opening Balances $-1,000.00 0
2004/05/03 Investment balance Assets:Brokerage 50 AAPL 50 AAPL
Eq:Opening Balances $-1,500.00 $-1,500.00
50 AAPL
2004/05/14 Páy dày Assets:Bank:Checking 500.00€ $-1,500.00
50 AAPL
500.00€
Income:Salary -500.00€ $-1,500.00
50 AAPL
2004/05/14 Another dày in whic.. ..á:Ch:As:Bá:Chécking $500.00 $-1,000.00
50 AAPL
Income:Salary $-500.00 $-1,500.00
50 AAPL
2004/05/14 Another dày in whic.. Ру:Ак:Ру:Русский язык $1,000.00 $-500.00
50 AAPL
Income:Salary $-1,000.00 $-1,500.00
50 AAPL
2004/05/27 Book Store Expenses:Books $20.00 $-1,480.00
50 AAPL
Expenses:Cards $40.00 $-1,440.00
50 AAPL
Expenses:Docs $30.00 $-1,410.00
% tail +10 doc/sample.dat|./build/ledger/debug/ledger -f - reg in
Error: std::bad_cast
% sudo port deactivate boost @1.40.0_1+debug+python26+st
---> Deactivating boost @1.40.0_1+debug+python26+st
% sudo port activate boost @1.40.0_1+python26
---> Activating boost @1.40.0_1+python26
% port installed boost
The following ports are currently installed:
boost @1.40.0_1+debug+python26+st
boost @1.40.0_1+python26 (active)
% ./build/ledger/debug/ledger -f doc/sample.dat reg
2004/05/01 Checking balance Assets:Bank:Checking $1,000.00 $1,000.00
Eq:Opening Balances $-1,000.00 0
2004/05/03 Investment balance Assets:Brokerage 50 AAPL 50 AAPL
Eq:Opening Balances $-1,500.00 $-1,500.00
50 AAPL
2004/05/14 Páy dày Assets:Bank:Checking 500.00€ $-1,500.00
50 AAPL
500.00€
Income:Salary -500.00€ $-1,500.00
50 AAPL
2004/05/14 Another dày in whic.. ..á:Ch:As:Bá:Chécking $500.00 $-1,000.00
50 AAPL
Income:Salary $-500.00 $-1,500.00
50 AAPL
2004/05/14 Another dày in whic.. Ру:Ак:Ру:Русский язык $1,000.00 $-500.00
50 AAPL
Income:Salary $-1,000.00 $-1,500.00
50 AAPL
2004/05/27 Book Store Expenses:Books $20.00 $-1,480.00
50 AAPL
Expenses:Cards $40.00 $-1,440.00
50 AAPL
Expenses:Docs $30.00 $-1,410.00
% ./build/ledger/debug/ledger -f doc/sample.dat reg in
2004/05/01 Checking balance Assets:Bank:Checking $1,000.00 $1,000.00
Eq:Opening Balances $-1,000.00 0
2004/05/03 Investment balance Eq:Opening Balances $-1,500.00 $-1,500.00
2004/05/14 Páy dày Assets:Bank:Checking 500.00€ $-1,500.00
500.00€
Income:Salary -500.00€ $-1,500.00
2004/05/14 Another dày in whic.. ..á:Ch:As:Bá:Chécking $500.00 $-1,000.00
Income:Salary $-500.00 $-1,500.00
2004/05/14 Another dày in whic.. Income:Salary $-1,000.00 $-2,500.00
2004/05/27 Credit card company Assets:Bank:Checking $-20.00 $-2,520.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment