Skip to content

1.50.3-1.51.1: add with no journal and no options gives an error, should pick default path #2514

@simonmichael

Description

@simonmichael

In hledger 1.50.3-1.51.1, when LEDGER_FILE is unset and ~/.hledger.journal does not exist, hledger add fails instead of creating that file. This is more fallout from the recent include/glob changes.

~$ HOME=/tmp LEDGER_FILE= hledger add
hledger: Error: neither LEDGER_FILE nor "/tmp/.hledger.journal" was found

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.addaffects4-manyAffects potentially a significant number of users.annoyance4-majorMajor usability/doc bug, or any regression or crash.needs-releaseThis should probably be shipped in a release soon.regressionA backwards step, indicating a weakness in our QA. We don't like these.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions