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

expandArgsAt doesn't understand ~ #48

Open
simonmichael opened this issue Oct 1, 2017 · 1 comment
Open

expandArgsAt doesn't understand ~ #48

simonmichael opened this issue Oct 1, 2017 · 1 comment

Comments

@simonmichael
Copy link

expandArgsAt and @ARGSFILE seems a great feature, which I've enabled in hledger 1.4.

I notice that @~/some/file doesn't work though, you have to write @$HOME/some/file instead. Perhaps there is some extra level of file path expansion that would be appropriate for it to do.

@ndmitchell
Copy link
Owner

I think this is all controlled by your shell, and not cmdargs. If I try:

Neil@Neil MINGW64 /c/Neil
$ echo @$HOME
@/c/Users/ndmit_000

Neil@Neil MINGW64 /c/Neil
$ echo @~
@~

I don't expand $HOME at all, so not sure how I could reasonably expand ~. Note that x~ and ~x both don't expand ~ for me, but ~/ does.

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

2 participants