jwiegley/ledger — pull request #88 by kljohann (2012-10-13 13:26:21+00:00)
Title: Fix test runner and account mapping during csv conversion

See commit messages.

First commit:

If the command line switch "-f" is used the test runner will
not pass the file name of the test file to ledger.
The line "test -f /dev/null" as used in test/baseline/cmd-convert.test
did not work as intended before this.
Also using "-f - " did not work as "$ledger" was noti
prepended to the command.

Second commit:

By using payees_for_unknown_accounts instead of account_mappings in
csv.cc ledger will have the same behaviour as in `ledger -f - print`
in that it uses payee fields in account directives to rewrite the
account.

Feel free to cherry-pick!