Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.latest.- with imports from stdin #2315

Open
Terrance opened this issue Jan 12, 2025 · 0 comments
Open

.latest.- with imports from stdin #2315

Terrance opened this issue Jan 12, 2025 · 0 comments

Comments

@Terrance
Copy link

Importing via stdin (i.e. hledger import ... csv:-) creates a .latest.- file with that run's latest date, which means any other piped imports are subjected to that minimum date. This was a bit of a surprise as I'd expect the latest date not to be tracked here.

I'm using stdin as a way to reformat a series of different CSV files (e.g. sed ... $f.csv | hledger import ... csv:-), and I'd expect in general the source of a stdin import to vary between runs, so to me it would make more sense to suppress the .latest.- file by default when piping import data in, or else to have an option to prevent its creation / ignore it when present.

The import command help text talks about manipulating the latest files when needed, so I guess there's an expectation here that I'd remove them myself each time -- it just feels a little counter-intuitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant