Program not installed
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.
Which shell are you using?
It was tested on both bash and fish. Issue description updated.
I can confirm issue with bash 3.2.
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14)
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,
Thanks for confirming the findings, and please go ahead with your PR.
Have a nice day.
I just made #40 PR. I didn't see this issue 😄