Skip to content

a strange account alias behaviour #2471

@simonmichael

Description

@simonmichael

A bug, or at least a mystery to investigate:

# Sometimes I alias . to : so I can write . for subaccounts.
alias /\./=:

# Here I also make a short alias (ow) for a second-level account (w:ow).
alias ow=w.ow

2025-10-01
  (ow.aaa)  1

I expected ow.aaa to be equivalent to writing w:ow:aaa, but it's not:

$ hledger accounts
ow:aaa

If I change it to ow:aaa, it works:

$ hledger accounts
w:ow:aaa

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.affects3-fewAffects just a few users.annoyance2-minorMinor to moderate usability/doc bug, reasonably easy to avoid or tolerate.journalThe journal file format, and its features.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions