wtf icon indicating copy to clipboard operation
wtf copied to clipboard

[bug ?] cmdrunner does not expand `~`

Open toby-bro opened this issue 2 months ago • 2 comments

When i write ~/.local/bin in the cmdrunner path it does not expand it the ~ to my home directory, so I am obliged to write the full path to my scripts. I do not know if this is done on purpose or not, so opening an issue. Might fix it myself.

toby-bro avatar Oct 30 '25 10:10 toby-bro

This is listed as a limitation on the website:

Internally, CmdRunner relies on Golang's exec.Command() to run terminal commands. As it does not invoke the system shell, not all commands are supported. To quote Golang docs, it "does not expand any glob patterns or handle other expansions, pipelines, or redirections typically done by shells."

I've seen situations like this where ~ wasn't supported but instead you can use $HOME. Unfortunately in this situation the latter doesn't work either.


It feels to me like this isn't a bug however I would think a chance for feature improvement.

FelicianoTech avatar Oct 31 '25 17:10 FelicianoTech

Ok, I'll see if I can find a workaround soon.

toby-bro avatar Oct 31 '25 19:10 toby-bro