Skip to content

!include directive relative to file broken in 1.50.3 #2499

@joeyh

Description

@joeyh

In ~/.hledger.journal I have:

!include doc/private/money/hledger.journal

That worked with versions up to 1.32.3, but not with hledger 1.50.3 (linux-x86_64):

joey@darkstar:~>hledger bal
hledger: Error: /home/joey/.hledger.journal:3:2:
|
3 | !include doc/private/money/hledger.journal
| ^
No files were matched by glob pattern: doc/private/money/hledger.journal

To get it to work I had to prefix the path with "~/".

According to the documentation, include paths are supposed to be relative to the including file's folder. So for ~/.hledger.journal, paths should be relative to the home directory.

BTW, --old-glob does not change this behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    journalThe journal file format, and its features.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions