with icon indicating copy to clipboard operation
with copied to clipboard

Program not installed

Open KungPaoChicken opened this issue 9 years ago • 6 comments

On my Debian 8.6, with would not work on any program, giving the error: Program is not installed message. This happened on both bash and fish shells.

It seems that you missed a "$@" in the last line, and parameters are not passed to your script.

I changed the last line from main to main "$@" and things started working again. I am not sure if there are side-effects, as a result I posted this as an issue so more people could help.

KungPaoChicken avatar Sep 28 '16 11:09 KungPaoChicken

Which shell are you using?

desyncr avatar Sep 28 '16 12:09 desyncr

It was tested on both bash and fish. Issue description updated.

KungPaoChicken avatar Sep 28 '16 12:09 KungPaoChicken

I can confirm issue with bash 3.2.

GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14)

desyncr avatar Sep 28 '16 12:09 desyncr

Issue was introduced in this commit: https://github.com/mchav/with/commit/5f7e2d51222fd8bc9113167c933cad1f97dce4bd#diff-23a58bf9274bedb19375e527a0744fa9R357

Effectively adding "$@" to 'main' function call solves the issue. If you'd like to PR please go ahead, otherwise I'm gonna give a shot at it.

Best regards,

desyncr avatar Sep 28 '16 12:09 desyncr

Thanks for confirming the findings, and please go ahead with your PR.

Have a nice day.

KungPaoChicken avatar Sep 28 '16 12:09 KungPaoChicken

I just made #40 PR. I didn't see this issue 😄

maturanomx avatar Oct 19 '16 15:10 maturanomx